Sorry, Gmail seems to have barfed my attachment. I'm attaching the patch again, hopefully it will work this time!<br><br><div><span class="gmail_quote">On 2/9/07, <b class="gmail_sendername">Tal Einat</b> <<a href="mailto:taleinat@gmail.com">
taleinat@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">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>
</blockquote></div><br>