Confusing error message: lambda walruses

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


On Thu, Oct 7, 2021 at 8:51 AM Thomas Jollans <tjol at tjol.eu> 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?
>
> https://github.com/python/peps/commit/f906b988b20c9a8e7e13a2262f5381bd2b1399e2

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.

ChrisA


More information about the Python-list mailing list