This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Trundle
Recipients Trundle, benjamin.peterson, ezio.melotti, georg.brandl, milko.krachounov, ncoghlan
Date 2009-10-03.10:25:29
SpamBayes Score 8.974675e-06
Marked as misclassified No
Message-id <1254565531.58.0.936255809067.issue7006@psf.upfronthosting.co.za>
In-reply-to
Content
As every type is an instance of `type`, every type also has a
`__call__` attribute which means ``hasattr(type(x), '__call__')`` is
always true. `callable()` checks whether `tp_call` is set on the type,
which cannot be done in Python directly.
History
Date User Action Args
2009-10-03 10:25:31Trundlesetrecipients: + Trundle, georg.brandl, ncoghlan, benjamin.peterson, ezio.melotti, milko.krachounov
2009-10-03 10:25:31Trundlesetmessageid: <1254565531.58.0.936255809067.issue7006@psf.upfronthosting.co.za>
2009-10-03 10:25:30Trundlelinkissue7006 messages
2009-10-03 10:25:30Trundlecreate