[issue30465] FormattedValue expressions have wrong lineno and col_offset information

Serhiy Storchaka report at bugs.python.org
Thu Jun 15 12:58:43 EDT 2017


Serhiy Storchaka added the comment:

The last example causes a segfault with current PR.

>>> import ast
>>> ast.parse(r"""
... f'''\
... \
... {x}\
... \
... '''
... """)
python: Python/ast.c:4994: FstringParser_ConcatFstring: Assertion `!state->last_str || PyUnicode_GET_LENGTH(state->last_str) != 0' failed.

----------

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


More information about the Python-bugs-list mailing list