On Sat, 10 May 2014 22:42:13 -0700, Ethan Furman wrote: > On 05/10/2014 10:22 PM, Chris Angelico wrote: >> It's that declaration that creates the variable, not changing locals(). > > A Python variable is a name bound to a value (and values, of course, are > objects). If you don't have both pieces, you don't have a Python > variable.
+1 Well said. -- Steven D'Aprano http://import-that.dreamwidth.org/ -- https://mail.python.org/mailman/listinfo/python-list