Add Support for Transforming Pythonic Values #109
Labels
No labels
accessibility
backport to lts
bug
code
critical
cygwin
documentation
duplicate
error reporting
external
feature
feedback
good first issue
help wanted
infrastructure
invalid
investigate
language spec
logs
lti
lts only
mac
maybe
qtype:bigbox
qtype:checkoff
qtype:expression
qtype:fileupload
qtype:multiexpression
qtype:multiplechoice
qtype:number
qtype:pythoncode
qtype:pythonic
qtype:pythonliteral
qtype:richtext
qtype:smallbox
question
question types
sandbox
security
syntax highlighting
ui/ux
wontfix
wsl
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
catsoop/catsoop#109
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Given that we've reverted the code in
pythonicto useast.literal_eval, it would be nice to have a way to specify a transformation of the given variable to turn it into an appropriate literal value. For example, if the expected answer is anumpyarray, we could have a function that takes that array and calls.toliston it. I'm not sure the best way to specify this, maybe a function with a special name incsq_code_pre, and then in the sandbox, if that function exists, we call it to get the final return value.