New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IDLE - add "paste code" functionality #45519
Comments
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 ('>>> This allows easily copy/pasting code between shell and editor windows, This patch uses IDLE's PyParse.py for parsing code, and Tk's clipboard Test only on WinXP SP2 so far, needs to be tested on other platforms, |
This has already been implemented. |
(Reopening as the previous message appears to be incorrect.) |
I would really like something like this -- for 3.2b1 next week.
I am constantly running posted interactive code and the lack of this is a major nuisance. There seems to be a glitch in how the editor deals with '>>> ' when trying to delete it.
However, as well as removing '>>> ' and '... ' from code lines,
I would like it to add '# ' to output lines. I do not see that in the patch. Since I have XP also (and access to Win7) I would consider this working on those two sufficient reason to commit. As near as I can tell, the patch cannot possibly break other systems as long as the feature is not used. Once in the beta, it could get wider testing. |
An alternative approach would be to leave pasting alone but add a |
By already implemented, I presume Mark was referring to the PastePyShell.py extension that is part of the IdleX package http://idlex.sourceforge.net/. I plan to take a look. |
I would like to add 'Save code' to the Shell menu, but this would still be needed. A strip_noncode function could be shared. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: