( toMpEr | 2018. 07. 15., v – 16:29 )

jogos, még a pep 572 doksija is megemlíti:

> Why not just turn existing assignment into an expression?
> C and its derivatives define the = operator as an expression, rather than a statement as is Python's way. This allows assignments in more contexts, including contexts where comparisons are more common. The syntactic similarity between if (x == y) and if (x = y) belies their drastically different semantics. Thus this proposal uses := to clarify the distinction.