[Python-ideas] PEP 572: Assignment Expressions (post #4)
Chris Angelico
rosuav at gmail.com
Fri Apr 13 00:26:48 EDT 2018
On Fri, Apr 13, 2018 at 1:00 PM, Thautwarm Zhao <yaoxiansamma at gmail.com> wrote:
> I do support this feature, but now I'm worried about the meaning of ':=', it
> seems to be a lazy assignment in some degree. I'm not sure using ':=' is
> proper here.
What do you mean by "lazy"? The assignment happens at the exact point
that it is reached. Is there another language that uses := to mean
something where the assignment doesn't happen until later? Or where
the expression is assigned unevaluated, and is evaluated later? What
part of it is lazy?
ChrisA
More information about the Python-ideas
mailing list