[issue26713] Change f-literal grammar so that escaping isn’t possible or necessary

Eric V. Smith report at bugs.python.org
Fri Apr 8 13:28:24 EDT 2016


Eric V. Smith added the comment:

I agree with David here, this isn't a bug tracker level issue.

But, to the specifics of your example, it already works:

Python 3.6.0a0 (default:9095a5787a82+, Feb  5 2016, 18:24:55) 
[GCC 5.2.1 20151010] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> f'spam{(lambda: 1)():<4}'
'spam1   '
>>> 

The section of the docs you cited is only talking about single quotes, double quotes, escaped quotes, triple quotes and the like.

So I'm not clear what changes you'd be proposing. If you bring this up on python-ideas, please be specific about what you'd change.

Thanks!

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26713>
_______________________________________


More information about the Python-bugs-list mailing list