[Tutor] How to stop a script.
Ian Egland
ian505 at gmail.com
Fri Dec 28 20:17:52 CET 2007
Yea I think that I will wait till I get sea legs for the first time, hehe.
On Dec 28, 2007 1:16 PM, Marc Tompkins <marc.tompkins at gmail.com> wrote:
> As far as I know, not unless you either 1) use threading and put the
> killable process in a separate thread or 2) stop and check for input once in
> a while, which will make things much much slower. If you're anything like
> me, threading is something you'll want to put off for a month or so while
> you get your Python sea legs...
>
> On Dec 28, 2007 8:36 AM, Ian Egland <ian505 at gmail.com> wrote:
>
> > Hi everyone... I litterally just started python and did the following
> > 'hello world' related tutorial.
> >
> > http://hkn.eecs.berkeley.edu/~dyoo/python/idle_intro
> > <http://hkn.eecs.berkeley.edu/%7Edyoo/python/idle_intro>
> >
> > Being the kind of person who like to experiment, I tried changing the
> > following script from:
> >
> > print "Hello World!"
> > print "Here are the ten numbers from 0 to 9, just in case you can't
> > count."
> > for i in range(10):
> > print i,
> >
> > print "I'm done!"
> >
> > to:
> >
> > print "Hello World!"
> > print "Here are the ten numbers from 0 to 9, just in case you can't
> > count."
> > for i in range(10000000):
> > print i,
> >
> > print "I'm done!
> >
> >
> > Now I am stuck staring at IDLE as it prints out all 10million
> > numbers.....
> > Is there a way other than closing the shell to stop a script midway
> > through execution?
> >
> > -Ian
> >
> >
> >
> > _______________________________________________
> > Tutor maillist - Tutor at python.org
> > http://mail.python.org/mailman/listinfo/tutor
> >
> >
>
>
> --
> www.fsrtechnologies.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20071228/80796860/attachment-0001.htm
More information about the Tutor
mailing list