Confusing error message: lambda walruses

Chris Angelico rosuav at
Wed Oct 6 17:53:58 EDT 2021

On Thu, Oct 7, 2021 at 8:51 AM Thomas Jollans <tjol at> wrote:
> On 03/10/2021 01:39, Chris Angelico wrote:
> > Using assignment expressions in lambda functions sometimes works, but
> > sometimes doesn't.
> Does this commit by a certain Chris Angelico help clear things up?

No, because the examples I gave don't fit into that :) I was aware of
what the PEP originally said.

If you try to align the examples with the descriptions in the PEP,
you'll find that they don't all match.


More information about the Python-list mailing list