[Python-ideas] Modern language design survey for "assign and compare" statements

Rhodri James rhodri at kynesim.co.uk
Mon May 21 06:58:28 EDT 2018

On 20/05/18 06:19, Matt Arcidy wrote:
> On Sat, May 19, 2018, 11:07 Kirill Balunov <kirillbalunov at gmail.com> wrote:
>> I think I have a very strong argument "why are not others valid" - Because
>> already three months have passed and among 1300+ messages there was not a
>> single real example where assignment expression would be convenient or
>> useful outside `while` and `if` statements. If you have a counterargument
>> (with an example), I would be glad to see.
> comprehensions.  I don't think you read any of the messages.  about 1000
> were solely about comprehensions.

I'm afraid I haven't seen a convincing example of an useful assignment 
expression in a comprehension that wasn't also a convincing example of 
things that shouldn't have been comprehensions in the first place.

Rhodri James *-* Kynesim Ltd

More information about the Python-ideas mailing list