Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
Bug description:
Setting the same name parameters gets the error message sayingduplicate argument as shown below:
deffunc(param,param):pass
SyntaxError: duplicate argument 'param' in function definition
Setting* after all the parameters gets the error message sayingat least one argument as shown below:
deffunc(param1,param2,*):pass
SyntaxError: named arguments must follow bare *
So,argument should be replaced withparameter as shown below:
SyntaxError: duplicate parameter 'param' in function definition
SyntaxError: named parameters must follow bare *
*You can also seethis issue.
CPython versions tested on:
3.12
Operating systems tested on:
Linux