Repository navigation
gh-154775: Don't accept duplicate plus sign when matching complex number - #154776
Conversation
|
Oops, I tried to help but my GitHub suggestion didn't apply correctly. |
|
Thanks so much for fixing this! |
|
I would prefer to save ability to use |
You can still do this; in the diff you can see the new
#148566 already did that ([edit] to The test that @johnslavik removed is for |
|
Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.15. |
|
GH-154802 is a backport of this pull request to the 3.15 branch. |
…lex number (GH-154776) (GH-154802) (cherry picked from commit a85830c) Co-authored-by: Petr Viktorin <[email protected]> Co-authored-by: Bartosz Sławecki <[email protected]>
…ex number (pythonGH-154776) Co-authored-by: Bartosz Sławecki <[email protected]>
When matching a complex literal in :keyword:
casestatements, an extraneous+sign is no longer allowed (for example, in1++1jor1-+1j).