This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author isoschiz
Recipients isoschiz
Date 2013-04-06.17:23:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1365269024.35.0.461360708932.issue17646@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-04-06 17:23:44isoschizsetrecipients: + isoschiz
2013-04-06 17:23:44isoschizsetmessageid: <1365269024.35.0.461360708932.issue17646@psf.upfronthosting.co.za>
2013-04-06 17:23:44isoschizlinkissue17646 messages
2013-04-06 17:23:44isoschizcreate