On Thu, Dec 26, 2019 at 1:16 AM Jeff Gitlin <jeff.git...@gmail.com> 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?

I don't understand the question. Are you asking why the normal "="
operator should be used? For starters, "=" is far more flexible than
":=" in terms of what it can assign to.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to