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
>>>deffunction(duplicate,duplicate):...pass# Expected error message:SyntaxError:duplicateargument'duplicate'infunctiondefinition# Actual error message:SyntaxError:incompleteinput
>>>defglobal_and_parameter(argument,/):...globalargument# It may not be clear for less experienced coders# that a name cannot be global and parameterSyntaxError:incompleteinput# However when executed with exec():SyntaxError:name'argument'isparameterandglobal
Linked PRs
- gh-111366: Correctly show custom syntax error messages in the codeop module functions #111384
- [3.11] gh-111366: Correctly show custom syntax error messages in the codeop module functions (GH-111384). #111516
- [3.12] gh-111366: Correctly show custom syntax error messages in the codeop module functions (GH-111384). #111517