From: Liam C. <cy...@gm...> - 2005-02-26 11:35:27
|
Hi Peter, AFAIK this is an issue with all Python shells, from IDLE through to PythonWin. Although, you can paste line by line IIRC. Regards, Liam Clarke On Fri, 25 Feb 2005 08:24:22 -0800, Peter C. Norton <spa...@le...> 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. > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > -- 'There is only one basic human right, and that is to do as you damn well please. And with it comes the only basic human duty, to take the consequences. |