Re: Creating an event loop

2006-04-11 Thread Michele Simionato
Fabian Steiner wrote: > 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

Re: Creating an event loop

2006-04-10 Thread Larry Bates
Fabian Steiner wrote: > 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 director

Re: Creating an event loop

2006-04-09 Thread Peter Hansen
Fabian Steiner wrote: > 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 t