Message387911
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
>>> |
|
Date |
User |
Action |
Args |
2021-03-02 11:10:19 | aroberge | set | recipients:
+ aroberge |
2021-03-02 11:10:19 | aroberge | set | messageid: <1614683419.24.0.792898358866.issue43366@roundup.psfhosted.org> |
2021-03-02 11:10:19 | aroberge | link | issue43366 messages |
2021-03-02 11:10:18 | aroberge | create | |
|