homepage

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 Malcolm Smith
Recipients Malcolm Smith
Date 2017年08月13日.21:12:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1502658757.92.0.0359191508861.issue31196@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017年08月13日 21:12:37Malcolm Smithsetrecipients: + Malcolm Smith
2017年08月13日 21:12:37Malcolm Smithsetmessageid: <1502658757.92.0.0359191508861.issue31196@psf.upfronthosting.co.za>
2017年08月13日 21:12:37Malcolm Smithlinkissue31196 messages
2017年08月13日 21:12:37Malcolm Smithcreate

AltStyle によって変換されたページ (->オリジナル) /