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 serhiy.storchaka
Recipients r.david.murray, serhiy.storchaka, terry.reedy, vaultah
Date 2015-01-16.18:35:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1421433359.63.0.628676295627.issue22619@psf.upfronthosting.co.za>
In-reply-to
Content
Thank you for your patches Dmitry.

But I think that the code can be made simpler. Here is a patch which refactors extracting code. It splits the code on few generators which do different tasks: iterate over tracebacks or frames linked list, limit the size of proceeded sequence, and generates required fields. Note that the behavior of extract_stack() with negative limit differs if sys.tracebacklimit is specified and less than the length of full traceback. Tests are changed too, now they test all combinations of the limit parameter and sys.tracebacklimit.
History
Date User Action Args
2015-01-16 18:35:59serhiy.storchakasetrecipients: + serhiy.storchaka, terry.reedy, r.david.murray, vaultah
2015-01-16 18:35:59serhiy.storchakasetmessageid: <1421433359.63.0.628676295627.issue22619@psf.upfronthosting.co.za>
2015-01-16 18:35:59serhiy.storchakalinkissue22619 messages
2015-01-16 18:35:59serhiy.storchakacreate