Message241388
| 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. |
|