[issue26107] PEP 511: code.co_lnotab: use signed line number delta to support moving instructions in an optimizer

Brett Cannon report at bugs.python.org
Mon Jan 18 16:30:37 EST 2016


Brett Cannon added the comment:

There's technically no need to worry about ranged values as the magic number is purely an equality check to see if the interpreter matches what the .pyc was created with. I guess there might be third-party code that does a range check, but that's bad as importlib checks the raw bytes only; using a number is mostly a convenience for changing it.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26107>
_______________________________________


More information about the Python-bugs-list mailing list