
Aug. 30, 2016
5:39 p.m.
On Tue, Aug 30, 2016 at 10:30 AM, Steven D'Aprano <steve@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)