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 terry.reedy
Recipients THRlWiTi, cben, eric.araujo, gpolo, roger.serwy, terry.reedy
Date 2015-11-06.03:54:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In #9618, it was pointed out that IDLE Shell inherits from code.InteractiveConsole, and that #7741 proposes to allow multiple statements there.

In 3.5, this example from msg114561 now gives a SyntaxError, as it should.

>>> x = 3
	y = 7

Seven years after opening this, I am more appreciative of 'enter and execute (and recall)' one statement at a time, especially for beginners.  Ditto for being able to edit a paste before executing.  So I am more inclined to just add the note to the doc (which currently says nothing about executing anyway).

Someone who wants to paste, execute, and recall multiple statements as a block, without having output interleaved, can wrap with 'if 1:'.

>>> if 1:
Date User Action Args
2015-11-06 03:54:44terry.reedysetrecipients: + terry.reedy, cben, gpolo, roger.serwy, eric.araujo, THRlWiTi
2015-11-06 03:54:44terry.reedysetmessageid: <>
2015-11-06 03:54:44terry.reedylinkissue3559 messages
2015-11-06 03:54:43terry.reedycreate