To follow up the suggestion by <span>John Bollinger regarding moving code between editor and shell windows:<br><br>I've written up an initial patch for IDLE which adds a Paste Code item in the Edit menu (and a Control+Shift+V hotkey for it).
<br><br>Selecting this option pastes the code from the clipboard, but with adjustments:<br>* Remove prompt characters (currently ">>> " or "... ", to also support code from a command-line Python shell)
<br>* When pasting to a shell, remove empty lines (i.e. all whitespace characters)<br><br>These adjustments are applied only to lines of code (multi-line strings are not changed).<br><br><br>Attached is unified diff to the current idlelib SVN (rev. 53679).
<br><br>Please take a moment to install and test this, report comments and bugs, and tell me what you think.<br>If you like it, I'll post the patch in SourceForge.<br><br>Enjoy!<br>- Tal<br></span>