On Mon, Jul 9, 2018 at 7:27 AM, Giampaolo Rodola' <g.rod...@gmail.com> wrote: > 5) It has no keyword argument correspondence. If foo(x := 1) is > allowed then why this one is not? > >>> foo(x=(x := 1)) > (I don't think it should BTW: it's not pretty)
Actually it is. Nothing wrong with that. It assigns to 'x' in the local scope, and also passes that as a keyword parameter named 'x'. ChrisA _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com