Bug report
Bug description:
Setting two * to a function gets the error message saying * argument as shown below:
def func(*, *, param1, param2):
pass
SyntaxError: * argument may appear only once
Setting * after all the parameters gets the error message saying named arguments as shown below:
def func(param1, param2, *):
pass
SyntaxError: named arguments must follow bare *
So, argument should be replaced with parameter as shown below:
SyntaxError: duplicate parameter 'param' in function definition
SyntaxError: named parameters must follow bare *
*You can also see this issue.
CPython versions tested on:
3.12
Operating systems tested on:
Linux
Linked PRs
Bug report
Bug description:
Setting two
*to a function gets the error message saying* argumentas shown below:Setting
*after all the parameters gets the error message sayingnamed argumentsas shown below:So,
argumentshould be replaced withparameteras shown below:*You can also see this issue.
CPython versions tested on:
3.12
Operating systems tested on:
Linux
Linked PRs