Skip to content

Same Name, Different Value and Variable is defined #75

Description

@ikotler
>>> [x=1, x=1] -> x -> print
<MainProcess:Thread-2> : 1
<MainProcess:Thread-3> : 1
[1, 1]
>>> x
1
>>> [x=1, x=2] -> x -> print
<MainProcess:Thread-6> : 1
<MainProcess:Thread-7> : 2
[1, 2]
>>> x
1
>>> 

AS OPPOSE TO:

>>> [x=1, x=2] -> x -> print
<MainProcess:Thread-2> : 1
<MainProcess:Thread-3> : 2
[1, 2]
>>> x
Exception in thread Thread-4:
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 505, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/Library/Python/2.7/site-packages/Pythonect-0.4.2-py2.7.egg/pythonect/internal/eval.py", line 518, in __run
    object_or_objects = __eval_current_atom(atom, locals_, globals_)
  File "/Library/Python/2.7/site-packages/Pythonect-0.4.2-py2.7.egg/pythonect/internal/eval.py", line 133, in __eval_current_atom
    raise e1
ImportError: No module named x

False
>>> 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions