News for hackers. Stuff that matters.
Re:What's Coming in Python 3.8 by geofft on Wednesday July 17, 2019 @07:24PM (#20465066)
The Zen of Python states:

> There should be one-- and preferably only one --obvious way to do it.

There are plenty of ways to do assignments. Walrus assignments are only the obvious way in certain cases, and in general there aren't other obvious ways. For testing and assigning the result of re.match, for instance, walrus assignments are clearly better than a temporary.

I can think of lots of nonobvious ways to do assignments, like setattr(__module__...)

There are no comments on this comment yet.