New submission from Mark Shannon:

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.

----------
hgrepos: 172
messages: 179887
nosy: Mark.Shannon
priority: normal
severity: normal
status: open
title: Allow signed line number deltas in the code object's  line number table

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16956>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to