[Tutor] Saving command line keyed input?
w chun
wescpy at gmail.com
Thu Oct 20 07:35:05 CEST 2005
On 10/19/05, bob <bgailer at alum.rpi.edu> wrote:
> At 02:12 PM 10/19/2005, CPIM Ronin wrote:
> >I know that one should use IDLE or a choosen editor for any substantial
> >Python coding! However, if one happens to have written some interesting
> >doodlings on the regular command line interface (under Windows XP in my
> >case), is there an easy way to save ALL input to date into a selected file?
>
> The way I do it is: select the text by dragging with the mouse (a
> recangle), then hit Enter. This puts it on the clipboard. Then go to where
> you want it and paste. As I did here:
hi ronin,
another alternative you have in IDLE is to just open a source window
by going to the File menu -> New Window, and doodling in there. then
just click F5 (to save and) run your doodling. that way your code is
already saved in a file. i do have to admit that it's not as easy as
just playing in the interpreter and typing Ctrl-A and pasting that
into your text editor, e-mail window, etc.
good luck!
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2006,2001
http://corepython.com
wesley.j.chun :: wescpy-at-gmail.com
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
More information about the Tutor
mailing list