[Tutor] Infinite program
Danny Yoo
dyoo at hkn.eecs.berkeley.edu
Sun Aug 22 05:57:22 CEST 2004
On Sat, 21 Aug 2004, Pavel Brabec wrote:
> I have also tried to play with Built-In function reload() but i do not
> want to reload another imported module, I want to reload the one from
> which I am calling the reload(). Is there a possibility to do something
> like that?
Hi Pavel,
Ah! reload() is not meant to be used as a way to do "looping" iteration.
It's really meant to do a refresh on a particular module during an
interactive Python session. So don't do that. *grin*
Instead, I think you're looking for loops. The tutorials in:
http://www.python.org/topics/learn/non-prog.html
show what loops are and how to make them work. In particular:
http://www.honors.montana.edu/~jjc/easytut/easytut/node6.html#SECTION00610000000000000000
http://www.freenetpages.co.uk/hp/alan.gauld/tutloops.htm
should be really helpful: they have examples that show how to ask for
something, over and over.
Good luck to you!
More information about the Tutor
mailing list