Author terry.reedy
Recipients Jim Fasarakis-Hilliard, brett.cannon, terry.reedy, xoviat
Date 2017-01-23.20:32:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1485203575.23.0.952536877138.issue29339@psf.upfronthosting.co.za>
In-reply-to
Content
Adding at least 'dumb indentation' (repeat last indent) to the REPL would make it at least a bit more usable.  (This still would not be a good as an IDE, like IDLE, that does smarter indentation, such as adding an additional indent after a compound statement header ends with ':'.)

The simplest patch would be to slice and echo the initial whitespace (spaces and tabs) of each line that needs to be followed with a secondary prompt.  What I don't know is whether, on every console, a printed tab always has the same effect as a tab entered by a user.
Testing would be needed.
History
Date User Action Args
2017-01-23 20:32:55terry.reedysetrecipients: + terry.reedy, brett.cannon, Jim Fasarakis-Hilliard, xoviat
2017-01-23 20:32:55terry.reedysetmessageid: <1485203575.23.0.952536877138.issue29339@psf.upfronthosting.co.za>
2017-01-23 20:32:55terry.reedylinkissue29339 messages
2017-01-23 20:32:55terry.reedycreate