[issue30682] f-string assert is too restrictive
Eric V. Smith
report at bugs.python.org
Fri Jun 16 05:13:47 EDT 2017
New submission from Eric V. Smith:
>>> eval("f'\\\n'")
python: Python/ast.c:4906: FstringParser_ConcatFstring: Assertion `!state->last_str || PyUnicode_GET_LENGTH(state->last_str) != 0' failed.
[2] 12810 abort (core dumped) ./python
The problem is that some literal strings are zero length. The assert can be deleted.
----------
assignee: eric.smith
components: Interpreter Core
messages: 296166
nosy: eric.smith, ned.deily, serhiy.storchaka
priority: normal
severity: normal
status: open
title: f-string assert is too restrictive
versions: Python 3.6, Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30682>
_______________________________________
More information about the Python-bugs-list
mailing list