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 ethan.furman
Recipients Claudiu.Popa, belopolsky, christian.heimes, ethan.furman, ionelmc, jedwards, llllllllll, terry.reedy
Date 2015-04-18.01:19:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1429319962.16.0.806873040305.issue23990@psf.upfronthosting.co.za>
In-reply-to
Content
The purpose of callable is to report whether an instance is callable or not, and that information is available on the instance's class, via the presence of __call__.  It is not up to callable() nor iter() nor ... to figure out that, even though the special method __call__ or __iter__ or ... exist, the object isn't /really/ what it says it is.

If you have special needs then write special functions, and they can be imported and used instead of the regular built-in ones.
History
Date User Action Args
2015-04-18 01:19:22ethan.furmansetrecipients: + ethan.furman, terry.reedy, belopolsky, christian.heimes, ionelmc, Claudiu.Popa, llllllllll, jedwards
2015-04-18 01:19:22ethan.furmansetmessageid: <1429319962.16.0.806873040305.issue23990@psf.upfronthosting.co.za>
2015-04-18 01:19:22ethan.furmanlinkissue23990 messages
2015-04-18 01:19:21ethan.furmancreate