https://en.m.wikipedia.org/wiki/Zen_of_Python
For anyone who hasn't read the original PEP link, what do you suppose this does? Guess its meaning:
1.
if (row := cursor.fetchone()) is None:
raise NotFound
return row
2.Next guess the meaning of this - what does it look like it does?
row = cursor.fetchone()
if row is None:
raise NotFound
return row
Answers:The first does the second. The second doesn't need explanation. I literally don't need to tell you what it does.
(The two examples are from the link.)
Now you might think that this means I'm against this PEP.
But actually [EDIT: because I know there is a VERY high bar to being accepted into Python] to me it means this is going to save an incredible amount of time - it must be very good indeed to be accepted.
So if they decided to adopt it - sure, I'll use it. And I bet it's great in practice.
It's also super explicit. If you don't know what := does you will go look it up.
If Python is still driven by Python design philosophy and all that discussion, then this will be very helpful. It surely had a very high threshold to meet.