Message291667
__code__ is not enough for quacking as a function. Different code can expect other function attributes (for example __name__, __qualname__ and __module__).
See also issue8488. inspect.isroutine() and inspect.ismethoddescriptor() return True for some descriptors, but they don't quack good enough for pydoc. |
|
Date |
User |
Action |
Args |
2017-04-14 15:01:47 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, scoder, steven.daprano, r.david.murray, jdemeyer |
2017-04-14 15:01:47 | serhiy.storchaka | set | messageid: <1492182107.01.0.311572994887.issue30071@psf.upfronthosting.co.za> |
2017-04-14 15:01:46 | serhiy.storchaka | link | issue30071 messages |
2017-04-14 15:01:46 | serhiy.storchaka | create | |
|