This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author aroberge
Recipients aroberge
Date 2021-03-02.11:10:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1614683419.24.0.792898358866.issue43366@roundup.psfhosted.org>
In-reply-to
Content
When using code.interact() with version 3.10.a6, an unclosed bracket [, or paren (, or {, will prevent identifying syntax errors.

First, the correct behaviour using Python

Python 3.10.0a6 ....
>>> [
... def test():
  File "<stdin>", line 2
    def test():
    ^
SyntaxError: invalid syntax


Demonstration of bug

>>> import code
>>> code.interact()
Python 3.10.0a6 ...
(InteractiveConsole)
>>> [
... def test():
...
...
KeyboardInterrupt
>>>
History
Date User Action Args
2021-03-02 11:10:19arobergesetrecipients: + aroberge
2021-03-02 11:10:19arobergesetmessageid: <1614683419.24.0.792898358866.issue43366@roundup.psfhosted.org>
2021-03-02 11:10:19arobergelinkissue43366 messages
2021-03-02 11:10:18arobergecreate