-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
more helpful diagnostics for parser module #80621
Comments
Seeing that the implicit resolution at bpo-36256 was to keep the parser module in place, may I suggest that the diagnostics it produces be improved, so that instead of "Expected node type 305, got 11", it would raise "Expected namedexpr_test, got COLON" |
Thank you very much for creating the issue :)
Nothing was really "decided", just that meanwhile is better not to ship a broken parser module.
Would you like to produce a PR for this? |
Haha, you were faster creating the PR than me posting the message! |
Totally true, but the issue is closed and resolved, meaning that no one will ever look at it again. |
I am very interested in a better alternative to the parser module, so I will open soon another issue for that matter. But as the original issue was about a specific bug, I prefer to mark it as resolved :) |
Thanks A. Skrobov for your contribution! :) |
Why was this merged in 3.7? This is a new feature, not a bug fix. |
Issue bpo-36256 (a real bug) was backported to 3.7 but also includes a similar improvement regarding node names in error messages. I can revert it from 3.7 if you consider it should not be there. |
Since the parser module did not work in 3.7, I think this will not harm. But in general new features (including changes in error messages) are added only in the developed version. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: