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 mscuthbert
Recipients Ronny.Pfannschmidt, abarry, mscuthbert, r.david.murray, tuxtimo
Date 2016-03-21.20:24:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1458591864.3.0.768779554026.issue17446@psf.upfronthosting.co.za>
In-reply-to
Content
Here's a rather obscure bug that I was able to catch before we put this into action: doctests inside the __doc__ for namedtuples (and perhaps all namedtuples?) are instances of property, have .fget, but do not have .fget.__code__.  Thus one more check is needed:

        if (lineno is None and 
                isinstance(obj, property) and
                obj.fget is not None and 
                hasattr(obj.fget, '__code__')):
            obj = obj.fget.__code__
            lineno = getattr(obj, 'co_firstlineno', None)
History
Date User Action Args
2016-03-21 20:24:24mscuthbertsetrecipients: + mscuthbert, r.david.murray, Ronny.Pfannschmidt, abarry, tuxtimo
2016-03-21 20:24:24mscuthbertsetmessageid: <1458591864.3.0.768779554026.issue17446@psf.upfronthosting.co.za>
2016-03-21 20:24:24mscuthbertlinkissue17446 messages
2016-03-21 20:24:24mscuthbertcreate