None assigment

Daniel Dittmar daniel.dittmar at sap.com
Thu Feb 8 13:05:52 EST 2001


None is defined in __builtins__ (type dir (__builtins__)), so it is not a
special name, it's just a name defined in the outer most namespace.

You can locally redefine 'dir' or 'type' as well - and how often did I fall
for that one.

You can even redefine it globally: __builtins__.None = 'Zilch' - not that
you should.

Daniel

--
Daniel Dittmar
daniel.dittmar at sap.com
SAP DB, SAP Labs Berlin
http://www.sapdb.org/






More information about the Python-list mailing list