-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
Error handling bugs in ast.c #104482
Copy link
Copy link
Closed
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Metadata
Metadata
Assignees
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
in validate_pattern, there are two places where in case of error we break out of a loop, but we also need to break out of the switch.
If we don't do this we can end up calling _PyAST_Compile with an error set.
Linked PRs