what does := means simply?

Steven D'Aprano steve+comp.lang.python at pearwood.info
Thu May 17 09:36:01 EDT 2018


On Thu, 17 May 2018 15:54:27 +0300, Serhiy Storchaka wrote:

> 17.05.18 15:07, Paul Moore пише:
>> It's a good example, because it makes it clear that the benefits of :=
>> are at least in some cases, somewhat dependent on the fact that Python
>> evaluates arguments left to right :-)
> 
> Unless it evaluates them in other order.

I don't think it does though, does it?

I know there are a few expressions that evaluate out of left-to-right 
order. But I think positional arguments are always evaluated left-to-
right.


-- 
Steve




More information about the Python-list mailing list