1.1 --- a/micropython/syspython.py Fri Jul 05 23:13:22 2013 +0200
1.2 +++ b/micropython/syspython.py Sun Jul 07 21:06:01 2013 +0200
1.3 @@ -52,10 +52,10 @@
1.4 # Some of the assignment operations cannot be supported unless attribute usage
1.5 # observations are being made.
1.6
1.7 -assattr_functions = ("storeaddress", "storeaddresscontext", "storeaddresscontext",
1.8 - "storeattr", "storeattrindex", None)
1.9 -getattr_functions = ("loadaddress", "loadaddresscontext", "loadaddresscontextcond",
1.10 - "loadattr", "loadattrindex", "loadattrindexcontextcond")
1.11 +assattr_functions = ("storeattrcontext", "storeattrcontext",
1.12 + "storeattr", "storeattrindexcontextcond")
1.13 +getattr_functions = ("loadattrcontext", "loadattrcontextcond",
1.14 + "loadattr", "loadattrindexcontextcond")
1.15
1.16 # Source code classes.
1.17
1.18 @@ -518,8 +518,8 @@
1.19
1.20 # Choose the appropriate special functions.
1.21
1.22 - (opaddress, opaddresscontext, opaddresscontextcond,
1.23 - opattr, opattrindex, opattrindexcontextcond) = expr and assattr_functions or getattr_functions
1.24 + (opattrcontext, opattrcontextcond, opattr, opattrindexcontextcond) = \
1.25 + expr and assattr_functions or getattr_functions
1.26
1.27 accessor = self.dispatch(node.expr)
1.28
1.29 @@ -536,11 +536,11 @@
1.30
1.31 if node._access_type == "static":
1.32 if node._set_context == "set":
1.33 - op = opaddresscontext
1.34 + op = opattrcontext
1.35 elif node._set_context == "cond":
1.36 - op = opaddresscontextcond
1.37 + op = opattrcontextcond
1.38 else:
1.39 - op = opaddress
1.40 + op = opattr
1.41
1.42 parent = self._generateValue(node._attr_deduced.parent)
1.43