-
Notifications
You must be signed in to change notification settings - Fork 171
Convert initialisation at declaration to assignments and fix Variable.value and Variable.m_symbolic_value settings #662
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
Conversation
… and not compile time values
…global variables) 2. Don't set value attribute for Variables (Python doesn't have constant variables by default)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this is fine.
The global variables in Python are effectively just like local (and should be handled like local): see #649 for an example. But let's fix it one step at a time. First inside functions, only later let's tackle the code at the global level.
The issue is not with global and local variables. Its related to incorrect setting of |
@certik This is ready. I am going to keep this PR for the fixes (as they are clean and simple IMO). Please let me know if any change is required. Thanks. |
Tests pass. |
Looks good, thanks! |
Closes #661
#651