Events

Michael Hudson mwh at python.net
Mon Dec 16 07:42:04 EST 2002


Tetsuo <member at dbforums.com> writes:

> Can I make Python do something, say, every midnight?

It's probably best to use cron for that if you are a unix-a-like.

> Or stop a calculation after one second?

Maybe.  There's alarm() or setrlimit() or you might be able to use
threads... can you be more specific?

Cheers,
M.

-- 
  Guido (like us!) is a bit schizophrenic here: he wants to be a
  benevolent dictator, but also wants to treat people like
  grownups. This probably worked better before Python got a large
  American audience <0.9 wink>.             -- Tim Peters, 10 Feb 2000



More information about the Python-list mailing list