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 serhiy.storchaka
Recipients jdemeyer, r.david.murray, scoder, serhiy.storchaka, steven.daprano
Date 2017-04-14.15:01:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1492182107.01.0.311572994887.issue30071@psf.upfronthosting.co.za>
In-reply-to
Content
__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.
History
Date User Action Args
2017-04-14 15:01:47serhiy.storchakasetrecipients: + serhiy.storchaka, scoder, steven.daprano, r.david.murray, jdemeyer
2017-04-14 15:01:47serhiy.storchakasetmessageid: <1492182107.01.0.311572994887.issue30071@psf.upfronthosting.co.za>
2017-04-14 15:01:46serhiy.storchakalinkissue30071 messages
2017-04-14 15:01:46serhiy.storchakacreate