1.1 --- a/micropython/data.py Thu Nov 28 23:51:08 2013 +0100
1.2 +++ b/micropython/data.py Fri Nov 29 00:14:20 2013 +0100
1.3 @@ -1258,7 +1258,7 @@
1.4
1.5 "Where functions have dynamic defaults, add a context argument."
1.6
1.7 - name = "<context>"
1.8 + name = "__context__"
1.9 self.argnames.insert(0, name)
1.10 self.positional_names.insert(0, name)
1.11 self.set(name, make_instance())
2.1 --- a/micropython/report.py Thu Nov 28 23:51:08 2013 +0100
2.2 +++ b/micropython/report.py Fri Nov 29 00:14:20 2013 +0100
2.3 @@ -1493,12 +1493,12 @@
2.4 if not first:
2.5 self.stream.write(", ")
2.6
2.7 - # NOTE: The special context argument should not be reproduced.
2.8 + # The special context argument should not be reproduced.
2.9 # NOTE: For "dynamic" functions, the context is used to access
2.10 # NOTE: things like defaults, but could be extended for closures to
2.11 # NOTE: refer to many namespaces.
2.12
2.13 - elif param == "<context>":
2.14 + elif param == "__context__":
2.15 continue
2.16
2.17 # Handle tuple parameters.