[issue44448] Suggestion: change existing error message for invalid function name

2021-06-18 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: But thanks a lot for the proposal! -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue44448] Suggestion: change existing error message for invalid function name

2021-06-18 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Unfortunately these are tokenizer errors and the tokenizer had no idea of what's a function, so introducing syntactic structure in the error is going to be quite error prone, as the tokenizer still sees whitespace and other stuff that the parser

[issue44448] Suggestion: change existing error message for invalid function name

2021-06-17 Thread Andre Roberge
New submission from Andre Roberge : Consider the following two examples with the latest beta release: Python 3.10.0b3 ... >>> def 3job(x): File "", line 1 def 3job(x): ^ SyntaxError: invalid imaginary literal >>> def 3ob(x): File "", line 1 def 3ob(x): ^