Python 3.8 and :=

Jeff Gitlin jeff.gitlin at gmail.com
Wed Dec 25 09:12:54 EST 2019


With the new operator := in Python 3.8
that allows you to do things like

if ( x := f() ) == 1:

Is there any reason to use just the assignment operator?


More information about the Python-list mailing list