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 hsfzxjy
Recipients hsfzxjy
Date 2021-02-08.14:46:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1612795567.03.0.987191957566.issue43163@roundup.psfhosted.org>
In-reply-to
Content
In Python3.10.0a5, `code.interact()` will raise unexpected SyntaxError even if there should be more code.

```
Python 3.10.0a5 (default, Feb  7 2021, 20:14:10) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import code
>>> code.interact()
Python 3.10.0a5 (default, Feb  7 2021, 20:14:10) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> print([1,
... 2,
  File "<console>", line 1
    print([1,
          ^
SyntaxError: '[' was never closed
>>> 
```

Similar things also happen in IDLE.
History
Date User Action Args
2021-02-08 14:46:07hsfzxjysetrecipients: + hsfzxjy
2021-02-08 14:46:07hsfzxjysetmessageid: <1612795567.03.0.987191957566.issue43163@roundup.psfhosted.org>
2021-02-08 14:46:07hsfzxjylinkissue43163 messages
2021-02-08 14:46:06hsfzxjycreate