Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formalize incomplete error exceptions to improve codeop module handling #113744

Open
pablogsal opened this issue Jan 5, 2024 · 0 comments
Open

Comments

@pablogsal
Copy link
Member

pablogsal commented Jan 5, 2024

Currently the way we detect incomplete errors in the codeop module is based on the exception text, which is suboptimal at least. To do this properly, add a new SyntaxError subclass called IncompleteInputError and use that in the codeop module to detect errors from the parser.

Linked PRs

pablogsal added a commit to pablogsal/cpython that referenced this issue Jan 5, 2024
…incomplete input detection in the codeop module
pablogsal added a commit to pablogsal/cpython that referenced this issue Jan 8, 2024
…incomplete input detection in the codeop module

Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant