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 anthony-flury
Recipients anthony-flury
Date 2016-08-30.19:26:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1472585181.25.0.672560198795.issue27901@psf.upfronthosting.co.za>
In-reply-to
Content
Consider the following code in Python2.7 & Python3.5 

    import inspect
    
    class a(object):
         def m(self):
             pass

in Python 2.7 
    
    inspect.ismethod(a.m) returns True

in Python 3.5
 
    inspect.ismethod(a.m) returns False

Not sure which is `correct`, but I can see the Python3.5 result causing some issues with automatic code documenters. 

I have code which will break under Python3.5 with this - my code performs static analysis of code, detecting functions, classes, attributes, and also traversing the mro to find inherited methods etc. Amongst other things this code identifies methods on classes, without instantiating those classes.

This may simply require a documentation change to explain the difference on Py3.5 - rather than a code change.
History
Date User Action Args
2016-08-30 19:26:21anthony-flurysetrecipients: + anthony-flury
2016-08-30 19:26:21anthony-flurysetmessageid: <1472585181.25.0.672560198795.issue27901@psf.upfronthosting.co.za>
2016-08-30 19:26:21anthony-flurylinkissue27901 messages
2016-08-30 19:26:21anthony-flurycreate