[Python-Dev] Deprecating builtin id (and moving it to sys())
"Martin v. Löwis"
martin at v.loewis.de
Thu Aug 18 11:39:37 CEST 2005
Anthony Baxter wrote:
> Removing it entirely is gratuitous breakage, for a not very high payoff. If
> you _really_ want to call a local variable 'id' you can (but shouldn't).
> You also can't/shouldn't call a variable 'class', 'def', or 'len' -- but I
> don't see any movement to allow these...
This is getting off-topic, but... In C#, you can: you write @class,
@void, @return. Apparently, this is so that you can access arbitrary
COM objects (which may happen to use C# keywords as method names). Of
course, we would put an underscore after the name in that case.
Regards,
Martin
More information about the Python-Dev
mailing list