New submission from Xie Jingyi <hsfz...@gmail.com>:
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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43163> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com