# HG changeset patch # User Paul Boddie # Date 1385680460 -3600 # Node ID 82c79d294ea62c861eeda50be069f0011c9eefcd # Parent 9b425fa89ea4ce5f5ba48f18a7078dcc794b8b15 Renamed the special "" parameter to "__context__". diff -r 9b425fa89ea4 -r 82c79d294ea6 micropython/data.py --- a/micropython/data.py Thu Nov 28 23:51:08 2013 +0100 +++ b/micropython/data.py Fri Nov 29 00:14:20 2013 +0100 @@ -1258,7 +1258,7 @@ "Where functions have dynamic defaults, add a context argument." - name = "" + name = "__context__" self.argnames.insert(0, name) self.positional_names.insert(0, name) self.set(name, make_instance()) diff -r 9b425fa89ea4 -r 82c79d294ea6 micropython/report.py --- a/micropython/report.py Thu Nov 28 23:51:08 2013 +0100 +++ b/micropython/report.py Fri Nov 29 00:14:20 2013 +0100 @@ -1493,12 +1493,12 @@ if not first: self.stream.write(", ") - # NOTE: The special context argument should not be reproduced. + # The special context argument should not be reproduced. # NOTE: For "dynamic" functions, the context is used to access # NOTE: things like defaults, but could be extended for closures to # NOTE: refer to many namespaces. - elif param == "": + elif param == "__context__": continue # Handle tuple parameters.