New assignmens ...

Chris Angelico rosuav at
Mon Oct 25 14:39:54 EDT 2021

On Tue, Oct 26, 2021 at 5:35 AM Antoon Pardon <antoon.pardon at> wrote:
> By putting limits on the walrus code, you are not reducing complexity, you are increasing it.
> You are increasing complexity because you can't just reuse the code that handles an ordinary
> assignment. You now need specific code to limit it's use.

What does this code do?

while x, y := foo():

Is it more complicated or less complicated when arbitrary assignment
targets are permitted?


More information about the Python-list mailing list