STINNER Victor added the comment:
Good news: this issue has been fixed by the commit of the issue #26107.
--
resolution: -> fixed
status: open -> closed
superseder: -> PEP 511: code.co_lnotab: use signed line number delta to
support moving instructions in an optimizer
Changes by Claudiu Popa pcmantic...@gmail.com:
--
nosy: +Claudiu.Popa
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21385
___
___
Python-bugs-list
R. David Murray added the comment:
Victor: in the production code discussed in the original posting, there *are*
line numbers, and they are meaningful; they just aren't monotonically
increasing.
I believe the request here is to simply remove the assert. (If we did that,
we'd have to also
Terry J. Reedy added the comment:
Summary of this post: compile currently checks user input with assert; this is
a bug that should be changed.
I re-read astlinenotest.py and realized that FunctionDef is included in '*' and
not some omitted import. (The latter is common for code posted on
STINNER Victor added the comment:
We can maybe modify the compiler to use the line number 1 if the line
information is missing?
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21385
STINNER Victor added the comment:
With the development version (Python 3.5), I reproduce the crash when Python is
compiled in debug mode:
$ ./python astlinenotest.py
python: Python/compile.c:3975: assemble_lnotab: Assertion `d_lineno = 0'
failed.
Abandon (core dumped)
The problem is that