Message127122
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. |
|
Date |
User |
Action |
Args |
2011-01-26 16:56:58 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, skip.montanaro, pitrou, stickwithjosh |
2011-01-26 16:56:58 | amaury.forgeotdarc | set | messageid: <1296061018.18.0.354695089989.issue11007@psf.upfronthosting.co.za> |
2011-01-26 16:56:57 | amaury.forgeotdarc | link | issue11007 messages |
2011-01-26 16:56:57 | amaury.forgeotdarc | create | |
|