[New-bugs-announce] [issue16956] Allow signed line number deltas in the code object's line number table

Mark Shannon report at bugs.python.org
Sun Jan 13 19:42:34 CET 2013


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 <report at bugs.python.org>
<http://bugs.python.org/issue16956>
_______________________________________


More information about the New-bugs-announce mailing list