Message300230
The standard interpreter is more eager to give an error on incomplete input, while the InteractiveConsole will keep on prompting for more:
Python 3.5.3 (default, Apr 10 2017, 07:53:16) [GCC 6.3.0 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> try:
...
File "<stdin>", line 2
^
IndentationError: expected an indented block
>>> import code
>>> code.interact()
Python 3.5.3 (default, Apr 10 2017, 07:53:16) [GCC 6.3.0 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> try:
...
...
...
...
The InteractiveConsole isn't totally wrong here, because after all, a blank line in this position is syntactically correct. But the inconsistency is confusing. |
|
Date |
User |
Action |
Args |
2017-08-13 21:12:37 | Malcolm Smith | set | recipients:
+ Malcolm Smith |
2017-08-13 21:12:37 | Malcolm Smith | set | messageid: <1502658757.92.0.0359191508861.issue31196@psf.upfronthosting.co.za> |
2017-08-13 21:12:37 | Malcolm Smith | link | issue31196 messages |
2017-08-13 21:12:37 | Malcolm Smith | create | |
|