I've found a note about this from Guido back in 2000: https://firstname.lastname@example.org/thread/BIAEXJPSO... Not sure if it went anywhere back then.
On Tue, Aug 25, 2020 at 4:27 PM Ben Avrahami email@example.com wrote:
consider the following function: def foo(a,b,c,x): pass
The following calls are equivalent: foo(1,2,3, x=0) foo(*(1,2,3), x=0) However, since python allows keyword arguments before star-unpacking, you can also do: foo(x=0, *(1, 2, 3)) But removing the unpacking, would result in a syntax error: foo(x=0, 1, 2, 3) This is against the understanding of unpacking, is this intentional? _______________________________________________ Python-ideas mailing list -- firstname.lastname@example.org To unsubscribe send an email to email@example.com https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://firstname.lastname@example.org/message/L5TYF3... Code of Conduct: http://python.org/psf/codeofconduct/