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 milko.krachounov
Recipients ezio.melotti, georg.brandl, milko.krachounov
Date 2009-09-27.16:08:29
SpamBayes Score 0.0004018448
Marked as misclassified No
Message-id <1254067711.37.0.583766291027.issue7006@psf.upfronthosting.co.za>
In-reply-to
Content
My suggestion is not only unreadable, but wrong. It's even less accurate
than hasattr(x, '__call__'), as it doesn't look in all the classes in
the MRO. Using isinstance(x, collections.Callable) should probably be
the correct replacement for 2to3 and situation where checking this is
really needed, as it does look for __call__ in the whole MRO.
History
Date User Action Args
2009-09-27 16:08:31milko.krachounovsetrecipients: + milko.krachounov, georg.brandl, ezio.melotti
2009-09-27 16:08:31milko.krachounovsetmessageid: <1254067711.37.0.583766291027.issue7006@psf.upfronthosting.co.za>
2009-09-27 16:08:30milko.krachounovlinkissue7006 messages
2009-09-27 16:08:30milko.krachounovcreate