Language change and code breaks (fwd)
Skip Montanaro
skip at pobox.com
Sat Jul 21 21:43:01 EDT 2001
>> date = 1
>> DATE += 1
>> print Date
Bengt> Ok, after the above, what would locals() give you? Which will
Bengt> give the value 2, locals()['date'] or locals()['DATE'] or both?
My guess is that case issues aside, locals() will be deprecated in the
relatively near future, so your question may be moot. I'm not sure what the
correct answer is.
--
Skip Montanaro (skip at pobox.com)
http://www.mojam.com/
http://www.musi-cal.com/
More information about the Python-list
mailing list