Eric V. Smith <[email protected]> added the comment:
This is a limitation of the parser: the entire f-string is first evaluated as a
string.
Just as
'Hey, {' this quote is wrong.'}'
or
r'Hey, {' this quote is wrong.'}'
are not valid strings, neither is
f'Hey, {' this quote is wrong.'}'
See issue 33754 for a possible future change that would address this.
----------
nosy: +eric.smith
resolution: -> duplicate
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue41240>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com