[Tutor] continuouse loop

Monika Jisswel monjissvel at googlemail.com
Thu Jul 17 21:07:07 CEST 2008


Would a program using a continuouse loop such as in this code take up
resources on the system if left for long period ?

import sys
>
> while 1:
>     self.data = sys.stdin.readline()
>     self.function_1(data)
>

What are my other options is I want to have a running program & other
programs communicate with it & get responses from it ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080717/d469cfaf/attachment-0001.htm>


More information about the Tutor mailing list