A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2005-August/055497.html below:

[Python-Dev] Deprecating builtin id (and moving it to sys())

[Python-Dev] Deprecating builtin id (and moving it to sys()) [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
built-in names!

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4