Eric V. Smith <e...@trueblade.com> added the comment:

> It is a limitation of f-strings, though. We're not allowed to use
> backslashes within the f-string expression in curly braces.

I've considered relaxing these restrictions, although it's very complicated. 
The parser would need to become aware of what's inside an f-string (the braces, 
the expressions, the optional format spec, the doubled braces, escaped 
characters, etc.). See PEP 536 for a rough outline. The = format for 
"debugging" with f-strings (see issue 36817) also makes this more complicated.

----------
nosy: +eric.smith

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

Reply via email to