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 roger.serwy
Recipients BreamoreBoy, cben, eric.araujo, gpolo, roger.serwy, terry.reedy
Date 2013-05-19.15:51:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1368978683.56.0.590435999894.issue3559@psf.upfronthosting.co.za>
In-reply-to
Content
The core problem is that IDLE only executes the shell buffer when the <<newline-and-indent>> virtual event gets sent by physically pressing the Enter key. Pasting the clipboard contents with \n will not trigger the enter_callback function in Lib/idlelib/PyShell.py.

The MultiLineRun.py extension as part of IdleX intercepts the pasted text and splits the buffer on '\n' and then runs each line.

Mark, what you are suggesting is adding something like a "Paste and Execute" option for the shell and its right-click menu which mimics the %paste magic from IPython. That's doable.
History
Date User Action Args
2013-05-19 15:51:23roger.serwysetrecipients: + roger.serwy, terry.reedy, cben, gpolo, eric.araujo, BreamoreBoy
2013-05-19 15:51:23roger.serwysetmessageid: <1368978683.56.0.590435999894.issue3559@psf.upfronthosting.co.za>
2013-05-19 15:51:23roger.serwylinkissue3559 messages
2013-05-19 15:51:23roger.serwycreate