# HG changeset patch # User Paul Boddie # Date 1385387383 -3600 # Node ID 59be62d8e75ff0afa8c2caf854fbccfb31a5a7d2 # Parent fff7445f3c593900124deb293679a34817bd66dc Fixed loadconstant usage to include both the constant and the new context. diff -r fff7445f3c59 -r 59be62d8e75f micropython/syspython.py --- a/micropython/syspython.py Sun Nov 17 00:23:36 2013 +0100 +++ b/micropython/syspython.py Mon Nov 25 14:49:43 2013 +0100 @@ -537,7 +537,7 @@ # operation setting the context is needed. if node._set_context == "set": - return compiler.ast.CallFunc(special_name(opconstant), [accessor]) + return compiler.ast.CallFunc(special_name(opconstant), [value, accessor]) else: return value