[issue11007] stack tracebacks should give the relevant class name
Amaury Forgeot d'Arc
report at bugs.python.org
Wed Jan 26 17:56:58 CET 2011
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
trace.py has a hack for this: it uses gc.get_referrers() to crawl back from the code object to the encloding class.
I would not trust this gc.get_referrers() though; it is probably slow, and there are even some crashers related to this function; I would not like it to be called on every traceback.
----------
nosy: +amaury.forgeotdarc
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11007>
_______________________________________
More information about the Python-bugs-list
mailing list