define 'in' operator on lists
__peter__ at web.de
Mon Oct 11 17:04:19 CEST 2004
Michael Hoffman wrote:
> Peter Otten wrote:
>> Michael Hoffman wrote:
>>>It's probably a good idea not to shadow the long built-in.
>> Relax. It's only shadowed inside a function that doesn't use the builtin
> I can see that, but I was thinking mainly in terms of avoiding warnings
> and problems if the Python developers eventually try to optimize
> references to the builtins :)
I can see how assigning to a global can cause trouble here, but a local
should be easy to resolve at compile time as 'not the builtin' and
therefore not hinder optimization.
More information about the Python-list