[Python-Dev] Assignment to None
Nick Coghlan
ncoghlan at gmail.com
Thu Jun 12 12:02:00 CEST 2008
Curt Hagenlocher wrote:
> If I recall correctly, Jython handles this by appending a trailing
> underscore to the imported name and there's no reason why we couldn't
> do something similar.
It also has the virtue of being the common convention for attribute
names that shadow keywords even in CPython (e.g. unittest.TestCase.assert_).
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
http://www.boredomandlaziness.org
More information about the Python-Dev
mailing list