Message186142
traceback.py contains a lot of code duplication, which makes it fragile in the face of changes (i.e. special cases) to the stack/traceback output (I am separately working on just such a change).
The attached patch refactors the code to reduce to a single function for each bit of logic, wrapped by the various existing APIs. The new helper functions are refactored as generators so as not to create unnecessary transient lists (not that stacks usually get very big anyway).
I've fully tested the replacement module, and it passes all the traceback tests in the standard suite. |
|
Date |
User |
Action |
Args |
2013-04-06 17:23:44 | isoschiz | set | recipients:
+ isoschiz |
2013-04-06 17:23:44 | isoschiz | set | messageid: <1365269024.35.0.461360708932.issue17646@psf.upfronthosting.co.za> |
2013-04-06 17:23:44 | isoschiz | link | issue17646 messages |
2013-04-06 17:23:44 | isoschiz | create | |
|