[issue43163] code.interact() unexpected raises exception when there may be more code
Change by Xie Jingyi : -- nosy: hsfzxjy priority: normal severity: normal status: open title: code.interact() unexpected raises exception when there may be more code type: behavior versions: Python 3.10 ___ Python tracker <https://bugs.python.org/issue43163> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43163] code.interact() unexpected raises exception when there may be more code
New submission from Xie Jingyi : 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 "", line 1 print([1, ^ SyntaxError: '[' was never closed >>> ``` Similar things also happen in IDLE. -- ___ Python tracker <https://bugs.python.org/issue43163> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43163] code.interact() unexpected raises exception when there may be more code
Change by Xie Jingyi : -- assignee: -> terry.reedy components: +IDLE, Library (Lib) nosy: +terry.reedy ___ Python tracker <https://bugs.python.org/issue43163> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43163] code.interact() unexpectedly raises exception when there may be more code
Change by Xie Jingyi : -- title: code.interact() unexpected raises exception when there may be more code -> code.interact() unexpectedly raises exception when there may be more code ___ Python tracker <https://bugs.python.org/issue43163> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com