1.1 --- a/micropython/syspython.py Mon Jul 01 02:10:23 2013 +0200
1.2 +++ b/micropython/syspython.py Mon Jul 01 12:57:30 2013 +0200
1.3 @@ -47,8 +47,8 @@
1.4 return compiler.ast.Getattr(special_name(module_name), attrname)
1.5
1.6 # Special function names.
1.7 -# NOTE: Some of the assignment operations should not be supported unless
1.8 -# NOTE: attribute usage observations are being made.
1.9 +# Some of the assignment operations cannot be supported unless attribute usage
1.10 +# observations are being made.
1.11
1.12 assattr_functions = ("__storeattrcontext__", "__storeattrcontext__", "__storeattr__",
1.13 "__storeattrindex__", None)
1.14 @@ -265,7 +265,7 @@
1.15 self.dispatch(node.assign,
1.16 # _it.next()
1.17 compiler.ast.CallFunc(
1.18 - compiler.ast.CallFunc(special_name("__loadattr__"), [
1.19 + compiler.ast.CallFunc(special_name("__loadattrindex__"), [
1.20 compiler.ast.CallFunc(special_name("__loadtemp__"), [temp]),
1.21 special_name("next")
1.22 ]),
1.23 @@ -873,7 +873,7 @@
1.24 self.dispatch(node.assign,
1.25 # _it.next()
1.26 compiler.ast.CallFunc(
1.27 - compiler.ast.CallFunc(special_name("__loadattr__"), [
1.28 + compiler.ast.CallFunc(special_name("__loadattrindex__"), [
1.29 compiler.ast.CallFunc(special_name("__loadtemp__"), [temp]),
1.30 special_name("next")
1.31 ]),
1.32 @@ -914,7 +914,7 @@
1.33 return compiler.ast.Stmt([
1.34 # _out.append(<expr>)
1.35 compiler.ast.CallFunc(
1.36 - compiler.ast.CallFunc(special_name("__loadattr__"), [
1.37 + compiler.ast.CallFunc(special_name("__loadattrindex__"), [
1.38 compiler.ast.CallFunc(special_name("__loadtemp__"), [out_temp]),
1.39 special_name("append")
1.40 ]),