[issue21385] in debug mode, compile(ast) fails with an assertion error if an AST node has no line number information

2016-01-20 Thread STINNER Victor
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

[issue21385] in debug mode, compile(ast) fails with an assertion error if an AST node has no line number information

2015-03-09 Thread Claudiu Popa
Changes by Claudiu Popa pcmantic...@gmail.com: -- nosy: +Claudiu.Popa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21385 ___ ___ Python-bugs-list

[issue21385] in debug mode, compile(ast) fails with an assertion error if an AST node has no line number information

2014-05-17 Thread R. David Murray
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

[issue21385] in debug mode, compile(ast) fails with an assertion error if an AST node has no line number information

2014-05-17 Thread Terry J. Reedy
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

[issue21385] in debug mode, compile(ast) fails with an assertion error if an AST node has no line number information

2014-05-13 Thread STINNER Victor
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

[issue21385] in debug mode, compile(ast) fails with an assertion error if an AST node has no line number information

2014-05-12 Thread STINNER Victor
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