[New-bugs-announce] [issue35494] Inaccurate error message for f-string
Sebastian Linke
report at bugs.python.org
Fri Dec 14 08:34:17 EST 2018
New submission from Sebastian Linke <Seb_Linke at arcor.de>:
Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:05:16) [MSC v.1915 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> spam = 'spam'
>>> f'{spam[0}'
File "<stdin>", line 1
SyntaxError: f-string: expecting '}'
The error message seems wrong because a "]" is missing rather than a "}".
----------
components: Interpreter Core
messages: 331827
nosy: seblin
priority: normal
severity: normal
status: open
title: Inaccurate error message for f-string
versions: Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35494>
_______________________________________
More information about the New-bugs-announce
mailing list