Python 3.8 and :=

Jeff Gitlin jeff.gitlin at gmail.com
Wed Dec 25 13:02:21 EST 2019


On Wednesday, December 25, 2019 at 9:13:09 AM UTC-5, Jeff Gitlin wrote:
> 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?

…………………..
Thanks. That web page is exactly what I was looking for!


More information about the Python-list mailing list