Message262146
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) |
|
Date |
User |
Action |
Args |
2016-03-21 20:24:24 | mscuthbert | set | recipients:
+ mscuthbert, r.david.murray, Ronny.Pfannschmidt, abarry, tuxtimo |
2016-03-21 20:24:24 | mscuthbert | set | messageid: <1458591864.3.0.768779554026.issue17446@psf.upfronthosting.co.za> |
2016-03-21 20:24:24 | mscuthbert | link | issue17446 messages |
2016-03-21 20:24:24 | mscuthbert | create | |
|