[issue2786] Names in traceback should have class names, if they're methods

Ben Longbons report at bugs.python.org
Wed Aug 26 04:19:27 CEST 2015


Ben Longbons added the comment:

Code objects currently have no mutable fields.

So what are you planning to do about things like:

Foo = namedtuple('Foo', 'x y')
def frob(self):
    return self.x + self.y
# probably actually done via a @member(Foo) decorator
# so adding more code here is not a problem.
Foo.frob.__qualname__ = 'Foo.frob'
Foo.frob = frob
del frob

----------
nosy: +o11c

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2786>
_______________________________________


More information about the Python-bugs-list mailing list