QUERY · ISSUE
Calling method with multiple named arguments does not raise SyntaxError
bugpy-core
It actually fixes a bug unrelated to double ** usage. Eg the following would previously pass without error:
def f(**x):
print(x)
f(a=1, a=2)
Can you please add a test for that case as well?
Originally posted by @dpgeorge in https://github.com/micropython/micropython/issues/10095#issuecomment-1328186336
CANDIDATE · ISSUE
foo(*a,*b) is not supported
Python 3.x uses this construct in functools.
>>> a=(1,2)
>>> b=(3,4)
>>> print(*a,*b)
1 2 3 4
MicroPython:
>>> a=(1,2)
>>> b=(3,4)
>>> print(*a,*b)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
SyntaxError: can't have multiple *x
Supporting this may not be particularly useful, but it should be documented.