Movatterモバイル変換
[0]ホーム
[Python-Dev] Deprecating builtin id (and moving it to sys())
Guido van Rossumgvanrossum 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 -- thedesign is such that if you don't care for a particular built-in youdon'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 andbuilt-in names!-- --Guido van Rossum (home page:http://www.python.org/~guido/)
More information about the Python-Devmailing list
[8]ページ先頭