-
-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
compile raises SyntaxError with undocumented lineno attribute None #88575
Comments
This example results in an undocumented value None for the lineno attribute:
Output:
Seen with python3-3.9.5-2.fc33.x86_64. python3-3.8.10-1.fc32.x86_64 used a lineno value of 0 (type int). |
Well, in both cases this means that the line number is not available. I think None is a bit cleaner in this regard. |
I suppose changing the documentation to mention |
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: