> Was that really the intention? Because I was there when PEP 572 was
> written, and I don't recall "beautiful one-liners" as one of the
> justifying reasons. Use around if/while conditions was a strong
> reason, and yes, that can save a line, but "beautiful one-liners"
> hasn't generally been a justifying factor in any Python feature.

Never said about the intention, just stated that I see it as being a part of 
their construction.

However, in the PEP you have referred and also as I remember reading python’s 
“what’s new”, list comprehensions and other 1-liners were close to half of all 
examples.

> On 18 Jul 2023, at 00:04, Chris Angelico <[email protected]> wrote:
> 
> On Tue, 18 Jul 2023 at 06:40, Dom Grigonis <[email protected]> wrote:
>> 
>> We even got a new operator “:=“ to help us with those beautiful one-liners 
>> (or not) to move towards aesthetics and brevity.
>> 
> 
> Was that really the intention? Because I was there when PEP 572 was
> written, and I don't recall "beautiful one-liners" as one of the
> justifying reasons. Use around if/while conditions was a strong
> reason, and yes, that can save a line, but "beautiful one-liners"
> hasn't generally been a justifying factor in any Python feature.
> 
> ChrisA
> _______________________________________________
> Python-ideas mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at 
> https://mail.python.org/archives/list/[email protected]/message/MJI5UNLOCJK4WTFBFNC2YFBE7PXHRAL7/
> Code of Conduct: http://python.org/psf/codeofconduct/

_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/EIG4E2OCQONZVDOKJIABAQTPB44BJEIC/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to