2013-11-25 | Paul Boddie | raw files shortlog changelog graph | Fixed loadconstant usage to include both the constant and the new context. | syspython-as-target |
micropython/syspython.py (file) |
1.1 --- a/micropython/syspython.py Sun Nov 17 00:23:36 2013 +0100 1.2 +++ b/micropython/syspython.py Mon Nov 25 14:49:43 2013 +0100 1.3 @@ -537,7 +537,7 @@ 1.4 # operation setting the context is needed. 1.5 1.6 if node._set_context == "set": 1.7 - return compiler.ast.CallFunc(special_name(opconstant), [accessor]) 1.8 + return compiler.ast.CallFunc(special_name(opconstant), [value, accessor]) 1.9 else: 1.10 return value 1.11