[issue11838] IDLE: make interactive code runnable.
Terry J. Reedy
report at bugs.python.org
Tue Apr 12 20:03:09 CEST 2011
New submission from Terry J. Reedy <tjreedy at udel.edu>:
One can currently save the contents of a shell window exactly as is, with opening message, prompts, and restarts. This essentially a screenshot of the frame -- fine for an IDLE doc but not useful for rerunning the code.
Similarly, if one pastes in interactive input/output, with or without secondary prompts, into an edit window, it is a nuisance to edit.
This issue proposes an option to 'flip' code and output lines, with prompts deleted and outputs commented, so that
Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> 1+2
3
becomes
#Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32
#Type "copyright", "credits" or "license()" for more information.
1+2
#3
(Ignore linewrap artifact on first line).
----------
components: IDLE
messages: 133592
nosy: terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: IDLE: make interactive code runnable.
versions: Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11838>
_______________________________________
More information about the Python-bugs-list
mailing list