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 <rep...@bugs.python.org> <http://bugs.python.org/issue30682> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com