Reply to post:

First Python feature release under new governance model is here, complete with walrus operator (:=)

Spudley

I agree.

There are no circumstances that make this a good practice, regardless of whether you have a distinct operator for it. The only reason for wanting to do it is because of some misguided belief that fewer lines of code makes your code neater. It does not.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon