[issue13672] Add co_qualname attribute in code objects

Alex Hall report at bugs.python.org
Wed Feb 19 05:15:17 EST 2020


Alex Hall <alex.mojaki at gmail.com> added the comment:

I think this would be very useful in tracebacks. If a traceback line had a more useful name like `MyClass.__init__` instead of just `__init__` or `my_decorator.<locals>.wrapper` instead of just `wrapper` it would provide useful context to the frame.

----------
nosy: +alexmojaki

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue13672>
_______________________________________


More information about the Python-bugs-list mailing list