Eric V. Smith added the comment:

This task is actually pretty difficult, and is going to require some major 
surgery to unparse.py.

Unfortunately, until it's fixed, you can't use f-strings in the stdlib or in 
stdlib tests.

Particularly challenging are nested f-strings like:
f'{f"{0}"*3}'

Getting the quoting right will be hard, and will likely require passing another 
parameter around to all of the dispatch functions. Or maybe just some local 
state, similar to the indent level (_indent) which is already being tracked.

----------
components: +Demos and Tools
nosy:  -python-dev

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

Reply via email to