Re: [Python-Dev] PEP 572 and f-strings

2018-05-12 Thread Eric V. Smith
> On May 12, 2018, at 9:03 AM, Chris Angelico wrote: > >> On Sat, May 12, 2018 at 9:11 PM, Eric V. Smith wrote: >> I don't think it matters to its acceptance, but PEP 572 should at least >> mention that the := syntax means that you cannot use assignment expressions >> in f-strings. >> >> As I

Re: [Python-Dev] PEP 572 and f-strings

2018-05-12 Thread Chris Angelico
On Sat, May 12, 2018 at 9:11 PM, Eric V. Smith wrote: > I don't think it matters to its acceptance, but PEP 572 should at least > mention that the := syntax means that you cannot use assignment expressions > in f-strings. > > As I wrote in a python-ideas email, f'{x:=4}' already has a defined mean

[Python-Dev] PEP 572 and f-strings

2018-05-12 Thread Eric V. Smith
I don't think it matters to its acceptance, but PEP 572 should at least mention that the := syntax means that you cannot use assignment expressions in f-strings. As I wrote in a python-ideas email, f'{x:=4}' already has a defined meaning (even if no one is using it). Eric ___