Message241554
This bug report seems to be completely based on a false premise. In the very first message of this issue, Ionel says:
"it return True even if __call__ is actually an descriptor that raise AttributeError (clearly not callable at all)."
but that is wrong. It *is* callable, and callable() is correct to return True. If you look at the stack trace, the __call__ method (function/property, whatever you want to call it) is called, and it raises an exception. That is no different from any other method or function that raises an exception.
It is wrong to think that raising AttributeError *inside* __call__ makes the object non-callable.
Ionel, I raised these issues on Python-list here:
https://mail.python.org/pipermail/python-ideas/2015-April/033078.html
but you haven't responded to them. |
|
Date |
User |
Action |
Args |
2015-04-19 19:29:33 | steven.daprano | set | recipients:
+ steven.daprano, terry.reedy, belopolsky, christian.heimes, ionelmc, r.david.murray, Claudiu.Popa, ethan.furman, eric.snow, llllllllll, jedwards |
2015-04-19 19:29:33 | steven.daprano | set | messageid: <1429471773.69.0.137724983311.issue23990@psf.upfronthosting.co.za> |
2015-04-19 19:29:33 | steven.daprano | link | issue23990 messages |
2015-04-19 19:29:33 | steven.daprano | create | |
|