Creating an event loop

Fabian Steiner lists at fabis-site.net
Sun Apr 9 13:44:24 EDT 2006


Hello!

I am currently wondering how to write something like an "event loop".
For example, if I want to write a function that checks whether a file
was added or removed in a directory I would think of a "while 1: ..."
construct that checks the mtime of the directory. Is this the right way
to achieve the exepected result or are there any better ways?

Cheers,
Fabian



More information about the Python-list mailing list