From: Kevin A. <al...@se...> - 2005-02-26 16:01:16
|
http://pythoncard.sourceforge.net/shell.html Ctrl+Shift+V is what you're looking for to run multiple lines from a paste. ka On Feb 25, 2005, at 8:24 AM, Peter C. Norton wrote: > I've tried to copy and paste code from the editor window to the shell, > but it seems that once multiple lines are pasted that the shell > doesn't evaluate the code. Its in the command line history as a block > that I can return to using <ctrl>-<up-arrow>, but when I hit enter its > not evaluated again. > > Is this something fixed? This is in the debian pythoncard > distribution. > > An example of this is the following snippet: > >>>> time = "now" > ... second_part = "is the time" > ... if time == "now": > ... print second_part >>>> >>>> time = "now" > ... second_part = "is the time" > ... if time == "now": > ... print second_part >>>> > [ Starting herer is where I did a line-by-line cut-n-paste] >>>> time = "now" >>>> second_part = "is the time" >>>> if time == "now": > ... print second_part > ... > is the time >>>> > > -Peter > > -- > The 5 year plan: > In five years we'll make up another plan. > Or just re-use this one. |