Message241388
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. |
|
Date |
User |
Action |
Args |
2015-04-18 01:19:22 | ethan.furman | set | recipients:
+ ethan.furman, terry.reedy, belopolsky, christian.heimes, ionelmc, Claudiu.Popa, llllllllll, jedwards |
2015-04-18 01:19:22 | ethan.furman | set | messageid: <1429319962.16.0.806873040305.issue23990@psf.upfronthosting.co.za> |
2015-04-18 01:19:22 | ethan.furman | link | issue23990 messages |
2015-04-18 01:19:21 | ethan.furman | create | |
|