event loop problem
Alex Martelli
aleaxit at yahoo.com
Tue Oct 24 06:56:43 EDT 2000
"Olivier Dagenais" <olivierS.dagenaisP at canadaA.comM> wrote in message
news:361J5.369195$Gh.11216252 at news20.bellglobal.com...
> > I am trying to write a simple Python script which which uses ADO
> > through Python's COM extension but never exit. For this I have writen
>
> I am sorry to report that a script or application that "never exits" is,
in
> practice, impossible.
>
> In order to actually help you, I would recommend you *not* write a script
> that never exits, since I see no practical use for something like:
>
> while 1:
> time.sleep(0.01)
>
> ...unless you've got a timer or interrupt somewhere that will stop it.
The use is "being in the background" and serving messages/requests/
events that may happen throughout the session. Of course, this does
require the event-loop to be served (see rest of the thread).
Alex
More information about the Python-list
mailing list