-
Notifications
You must be signed in to change notification settings - Fork 5.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
Inconsistent raising of IndentationError on for and if blocks after mismatching indented comment #7140
Labels
Comments
Hi @JonathanGrant92 thank you for writing this issue! As noted on the older issue you linked this issue seems to be better suited for the IPython repository as that is where changes would be applied. I will close this issue but I would encourage you to open this issue in the IPython repo. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
Similar to issue #171, whitespace of single-line comments at the top scope causes inconsistent raising of exceptions in code blocks like for and if blocks defined at the top scope anywhere after the indented comment in the same cell. Not reproducible with the same CPython version in IDLE Shell.
Reproduce
Expected behavior
Consistent raising and handling of IndentationError
Context
Version: 1.84.0 (user setup)
Commit: d037ac076cee195194f93ce6fe2bdfe2969cc82d
Date: 2023-11-01T11:29:04.398Z
Electron: 25.9.2
ElectronBuildId: 24603566
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Windows_NT x64 10.0.22621
Troubleshoot Output
indented_comments_break_jupyter.pdf
Command Line Output
ipynb cell samples exported to python
The text was updated successfully, but these errors were encountered: