Thank you for all your answers. They were all very instructive to me.

However, after further investigation, I feel that I have made a mistake when 
putting this topic on the table.

When walrus operator was discussed, it was proposed to restrict assignment 
expressions to if, elif, and while statements. That proposal was rejected.

I realised now that that also applies, by analogy, to assert statement. So, 
sorry for taking this issue back. My apologies. I was not my intention to 
re-start any superseded debate.

The walrus operator, as you know, has been —and will be— highly controversial 
and material on this matter is enormous. Reviewing all this material is a huge 
task that I should have done before speaking.

Sorry again and thank you.
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/MACCFXXNIL3EDUAFR7ZVGK36B4I6SATO/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to