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 jdemeyer
Recipients jdemeyer, r.david.murray, scoder, serhiy.storchaka, steven.daprano
Date 2017-04-14.15:03:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1492182219.16.0.851558219957.issue30071@psf.upfronthosting.co.za>
In-reply-to
Content
At the very least, the inspect module should use more duck-typing internally. For example, consider this code from "getfile":

    if ismethod(object):
        object = object.__func__
    if isfunction(object):
        object = object.__code__
    if istraceback(object):
        object = object.tb_frame
    if isframe(object):
        object = object.f_code
    if iscode(object):
        return object.co_filename
History
Date User Action Args
2017-04-14 15:03:39jdemeyersetrecipients: + jdemeyer, scoder, steven.daprano, r.david.murray, serhiy.storchaka
2017-04-14 15:03:39jdemeyersetmessageid: <1492182219.16.0.851558219957.issue30071@psf.upfronthosting.co.za>
2017-04-14 15:03:39jdemeyerlinkissue30071 messages
2017-04-14 15:03:38jdemeyercreate