Stripping ps1/ps2 when pasting into IDLE.

Lloyd Zusman ljz at asfast.com
Sat May 22 15:23:35 EDT 1999


When copying and pasting Python code into IDLE or other similar
interpreter environments, the source of these lines might contain
leading ps1/ps2 strings.  In this case, the inclusion of these leading
ps1/ps2 prompts can be avoided by pasting lines one at a time after
copying from the point immediately to the right of the prompt, but
it's much less of a hassle to paste an entire block of lines.

In this case, it would be quite desirable if IDLE would automatically
strip ps1/ps2 from the leftmost position of all incoming lines.

Is there any chance this functionality could be added to IDLE?

I'm willing to write it myself and supply a patch.

-- 
 Lloyd Zusman
 ljz at asfast.com




More information about the Python-list mailing list