# HG changeset patch # User Paul Boddie # Date 1372676250 -7200 # Node ID 0f4bbb3b9c2fab7d2a975d7183fbd97c680f5724 # Parent 56396b2453d84859052400ed7fd616614dd39825 Changed some accesses to the least optimised form due to lack of analysis. diff -r 56396b2453d8 -r 0f4bbb3b9c2f micropython/syspython.py --- a/micropython/syspython.py Mon Jul 01 02:10:23 2013 +0200 +++ b/micropython/syspython.py Mon Jul 01 12:57:30 2013 +0200 @@ -47,8 +47,8 @@ return compiler.ast.Getattr(special_name(module_name), attrname) # Special function names. -# NOTE: Some of the assignment operations should not be supported unless -# NOTE: attribute usage observations are being made. +# Some of the assignment operations cannot be supported unless attribute usage +# observations are being made. assattr_functions = ("__storeattrcontext__", "__storeattrcontext__", "__storeattr__", "__storeattrindex__", None) @@ -265,7 +265,7 @@ self.dispatch(node.assign, # _it.next() compiler.ast.CallFunc( - compiler.ast.CallFunc(special_name("__loadattr__"), [ + compiler.ast.CallFunc(special_name("__loadattrindex__"), [ compiler.ast.CallFunc(special_name("__loadtemp__"), [temp]), special_name("next") ]), @@ -873,7 +873,7 @@ self.dispatch(node.assign, # _it.next() compiler.ast.CallFunc( - compiler.ast.CallFunc(special_name("__loadattr__"), [ + compiler.ast.CallFunc(special_name("__loadattrindex__"), [ compiler.ast.CallFunc(special_name("__loadtemp__"), [temp]), special_name("next") ]), @@ -914,7 +914,7 @@ return compiler.ast.Stmt([ # _out.append() compiler.ast.CallFunc( - compiler.ast.CallFunc(special_name("__loadattr__"), [ + compiler.ast.CallFunc(special_name("__loadattrindex__"), [ compiler.ast.CallFunc(special_name("__loadtemp__"), [out_temp]), special_name("append") ]),