Files
micropython/tests/basics/fun_callstar_kwarg.py
T
Jeff Epler 5ddc551bc4 py/compile: Reject *arg after keyword argument.
Document this in cpydiff and add a test with expected output
for coverage testing.

As discussed in #11441, the code growth from handling this
case seems to outweigh the benefit of implementing it
properly.

Closes: #11439

Signed-off-by: Jeff Epler <jepler@unpythonic.net>
2026-04-15 15:40:15 +10:00

9 lines
281 B
Python

# A CPython syntax feature not supported by MicroPython. For more information
# see `this issue <https://github.com/micropython/micropython/issues/11439>`_.
# and tests/cpydiff/core_function_star.py
try:
exec("f(y=1, *(3,))")
except SyntaxError as e:
print("SyntaxError")