-
-
Notifications
You must be signed in to change notification settings - Fork 31k
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
code.interact() gives SyntaxError instead of SyntaxWarning #97562
Labels
type-bug
An unexpected behavior, bug, or error
Comments
Seems it was fixed in #96052. |
This was not fixed.
|
I only get a warning. |
I got a warning with 3.12.0a1, but not with 3.11.0. I assume it will be fixed in 3.11.1 and this can remained closed. |
I confirm that the fix is not in Python 3.11.0 final: you will have to wait for Python 3.11.1 bugfix release. Python 3.11.0 has the bug (raise SyntaxError):
The 3.11 development branch has the fix (display a warning):
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
In the example below, the normal interpreter only emits a SyntaxWarning which, upon execution, gives rise to a TypeError, whereas code.interact() gives a SyntaxError right away.
In addition to the above, I have been able to reproduce this with Python 3.9 and 3.10, but not with earlier Python versions.
The text was updated successfully, but these errors were encountered: