Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use variables autoinitialized to input from .v #262

Open
Mukundan314 opened this issue Mar 1, 2020 · 1 comment
Open

Unable to use variables autoinitialized to input from .v #262

Mukundan314 opened this issue Mar 1, 2020 · 1 comment

Comments

@Mukundan314
Copy link

Using variables auto initialized to input (i.e. z,Q) from .v like:

.v"z

gives the error:

Traceback (most recent call last):
  File "pyth.py", line 771, in <module>
  File "<string>", line 3, in <module>
  File "pyth.py", line 434, in pyth_eval
  File "<string>", line 1, in <module>
NameError: name 'z' is not defined
@mathcat4
Copy link

mathcat4 commented Jul 21, 2020

@Mukundan314 Also doesn't work with just v"z. ;-) Then the error is

Traceback (most recent call last):
  File "pyth.py", line 771, in <module>
  File "<string>", line 3, in <module>
  File "/app/macros.py", line 1093, in Pliteral_eval
  File "/app/.heroku/python/lib/python3.7/ast.py", line 91, in literal_eval
  File "/app/.heroku/python/lib/python3.7/ast.py", line 90, in _convert
  File "/app/.heroku/python/lib/python3.7/ast.py", line 63, in _convert_signed_num
  File "/app/.heroku/python/lib/python3.7/ast.py", line 55, in _convert_num
ValueError: malformed node or string: <_ast.Name object at 0x7efcabb279e8>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants