[Python-ideas] Let’s make escaping in f-literals impossible
Guido van Rossum
guido at python.org
Tue Aug 30 13:39:43 EDT 2016
On Tue, Aug 30, 2016 at 10:30 AM, Steven D'Aprano <steve at pearwood.info> wrote:
[...]
> That looks like you are doing a key lookup on bar:
>
> bar = {'\n': 'something'}
> f'foo{ bar['\n'] }baz'
>
> looks like it will return 'foosomethingbaz'. I expect that syntax will
> confuse an awful lot of people.
Can we please stop debating this? This observation has been made about
100 times by now.
--
--Guido van Rossum (python.org/~guido)
More information about the Python-ideas
mailing list