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 taleinat
Recipients taleinat
Date 2007-09-18.22:03:30
SpamBayes Score 0.01633754
Marked as misclassified No
Message-id <1190153010.77.0.038299898053.issue1178@psf.upfronthosting.co.za>
In-reply-to
Content
Patch adding a 'Paste Code' item to the 'Edit' menu, as well as hotkeys.

Using 'Paste Code' instead of the normal paste will remove prompts ('>>>
' or '... ') from the code, and also remove empty lines if pasting to a
shell window.

This allows easily copy/pasting code between shell and editor windows,
as well as easily pasting code from other applications (e.g. a web
browser) into IDLE.

This patch uses IDLE's PyParse.py for parsing code, and Tk's clipboard
API for interaction with the clipboard (it changes the clipboard's
contents, generates a normal paste event, and changes the contents back).

Test only on WinXP SP2 so far, needs to be tested on other platforms,
especially the clipboard interaction.
Files
File name Uploaded
IDLE_paste_code.070918.patch taleinat, 2007-09-18.22:03:30
History
Date User Action Args
2007-09-18 22:03:31taleinatsetspambayes_score: 0.0163375 -> 0.01633754
recipients: + taleinat
2007-09-18 22:03:30taleinatsetspambayes_score: 0.0163375 -> 0.0163375
messageid: <1190153010.77.0.038299898053.issue1178@psf.upfronthosting.co.za>
2007-09-18 22:03:30taleinatlinkissue1178 messages
2007-09-18 22:03:30taleinatcreate