[Python-3000] callable()
Nick Coghlan
ncoghlan at gmail.com
Thu Jul 20 12:52:59 CEST 2006
Ronald Oussoren wrote:
> On Jul 20, 2006, at 3:26 AM, Greg Ewing wrote:
>
>> Ronald Oussoren wrote:
>>
>>> Classic classes?
>> I just checked, and it seems they've been fixed too:
>> callable() and hasattr(obj, '__call_') give the same
>> result -- true if and only if a __call__ method has
>> been defined.
>
> But classic classes theirself are callable yet don't have a __call__
> attribute.
Which really won't be a problem in Py3k :)
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
http://www.boredomandlaziness.org
More information about the Python-3000
mailing list