New submission from Anthony Sottile <asott...@umich.edu>:

For instance this file:

foo = f"""{}
foo"""

$ python3.8 --version --version
Python 3.8.0b1 (default, Jun  6 2019, 03:44:52) 
[GCC 7.4.0]

$ python3.8 t.py | wc -c
  File "t.py", line 1


<<snipped, but very very many spaces>>

                                   ^
SyntaxError: f-string: empty expression not allowed


$ python3.8 t.py |& wc -c
49134

----------
components: Interpreter Core
messages: 346767
nosy: Anthony Sottile
priority: normal
severity: normal
status: open
title: syntax error in f-string in multiline string produces ~40k spaces of 
output
versions: Python 3.8, Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37433>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to