[Python-Dev] Deprecating builtin id (and moving it to sys())
Guido van Rossum
gvanrossum at gmail.com
Thu Aug 18 18:22:01 CEST 2005
On 8/17/05, Anthony Baxter <anthony at interlink.com.au> wrote:
> If you _really_ want to call a local variable 'id' you can (but shouldn't).
Disagreed. The built-in namespace is searched last for a reason -- the
design is such that if you don't care for a particular built-in you
don't need to know about it.
> You also can't/shouldn't call a variable 'class', 'def', or 'len' -- but I
> don't see any movement to allow these...
Please don't propagate the confusion between reserved keywords and
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev