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 Mark.Shannon
Recipients Mark.Shannon
Date 2013-01-13.18:42:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1358102554.86.0.0981281614451.issue16956@psf.upfronthosting.co.za>
In-reply-to
Content
The restriction that line numbers must be monotonically increasing w.r.t bytecode offset in the co_lnotab array prevents a number of beneficial transformations in the bytecode compiler.

This patch allows negative line number deltas and uses this capability to generate code for 'while' loops in standard text book fashion, putting the test *after* the body.
History
Date User Action Args
2013-01-13 18:42:35Mark.Shannonsetrecipients: + Mark.Shannon
2013-01-13 18:42:34Mark.Shannonsetmessageid: <1358102554.86.0.0981281614451.issue16956@psf.upfronthosting.co.za>
2013-01-13 18:42:34Mark.Shannonlinkissue16956 messages
2013-01-13 18:42:34Mark.Shannoncreate