[Tutor] List comprehension question

Alan Gauld alan.gauld at btinternet.com
Wed Nov 10 01:13:11 CET 2010


"Richard D. Moores" <rdmoores at gmail.com> wrote

> Question: When I dump in more that one line of any code (properly
> indented), after running it once, I've never known how to run it 
> again
> without a redump. The up arrow just gets me one line at a time. So,
> how to do it?

It depends on your IDE.

On IDLE I think its Alt-P and Alt-N to cycle through previous and
next lines of history.

On Pythonwin its Ctrl-Up/Ctrl-Down

IDLE and Pythonwin put in whole blocks.

The XP CMD prompt uses up/down keys but only does single lines

A La Mode had some neat cut n paste features for correctly pasting
in blocks of code evern from other places - like email....

Not sure about any of the others.

Alan FG. 




More information about the Tutor mailing list