define 'in' operator on lists
Peter Otten
__peter__ at web.de
Mon Oct 11 11:04:19 EDT 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
>> anyway.
>
> 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.
Peter
More information about the Python-list
mailing list