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

R. David Murray report at bugs.python.org
Sat May 17 15:18:52 CEST 2014


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 add tests that python itself was generating monotonically increasing line number, and make some doc changes.)

----------
nosy: +r.david.murray

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


More information about the Python-bugs-list mailing list