On 8/18/05, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On 8/17/05, Anthony Baxter <[EMAIL PROTECTED]> 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.
In practice, it causes much confusion if you ever use a local variable that has the same name as the built-in namespace. If you intend to use id as a variable, it leads to confusing messages when a typo or editing error accidentally removes the definition, because the name will still be defined for you. It also leads to confusion when you later want to use the builtin in the same module or function (or in the debugger). If Python defines the name, I don't want to provide a redefinition. Jeremy _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com