Properties/Decorators [WAS: Can I reference 1 instance of an object by more names ? rephrase]
Brian van den Broek
broek at cc.umanitoba.ca
Wed May 23 13:41:41 EDT 2007
Peter Otten said unto the world upon 05/23/2007 01:32 PM:
> Brian van den Broek wrote:
<snip>
>> Help on built-in function apply in module __builtin__:
>>
>> But:
>>
>> >>> [x for x in dir('__builtin__') if 'apply' in x]
>> []
>>
>> ? If apply is in the __builtin__ module, why doesn't
>> dir('__builtin__') know about it?
>
> The string "__builtin__" doesn't have an apply attribute; but the
> __builtin__ module has:
>
>>>> import __builtin__
>>>> "apply" in dir(__builtin__)
> True
>
> Peter
Doh!
Thanks Peter.
More information about the Python-list
mailing list