Re: [Python-Dev] Changes to PEP 498 (f-strings)

2016-09-09 Thread Guido van Rossum
Very happy to hear it. It's almost like you were present at the sprint! On Fri, Sep 9, 2016 at 7:04 PM, Eric V. Smith wrote: > I found some time before beta 1 to modify the f-string code to implement the > desired behavior: no backslashes inside the curly braces, but they're > allowed in the lite

Re: [Python-Dev] Changes to PEP 498 (f-strings)

2016-09-09 Thread Eric V. Smith
I found some time before beta 1 to modify the f-string code to implement the desired behavior: no backslashes inside the curly braces, but they're allowed in the literal string portions. I just checked it in. I still need to update PEP 498, and the documentation needs updating. I'll create an

[Python-Dev] Changes to PEP 498 (f-strings)

2016-08-30 Thread Eric V. Smith
After a long discussion on python-ideas (starting at https://mail.python.org/pipermail/python-ideas/2016-August/041727.html) I'm proposing the following change to PEP 498: backslashes inside brackets will be disallowed. The point of this is to disallow convoluted code like: >>> d = {'a': 4} >>> f'