Behaviour of time.sleep with negative arg
Colin Brown
cbrown at metservice.com
Sun Mar 14 17:38:07 EST 2004
"Jeff Epler" <jepler at unpythonic.net> wrote in message
news:mailman.10.1079299930.682.python-list at python.org...
> On Mon, Mar 15, 2004 at 08:43:51AM +1300, Colin Brown wrote:
> > "Jeff Epler" <jepler at unpythonic.net> wrote in message
> > news:mailman.15.1079236344.745.python-list at python.org...
> + The behavior when secs is less than zero is undefined. In
particular,
> + a future version of Python may interpret 'time.sleep(-1); other
code'
> + to cause 'other code' to execute beginning one second before the
call
> + to time.sleep.
I do not think this is taking it far enough, why not support a complex
number argument, you should be able to do something interesting with that!
Thanks
Colin
More information about the Python-list
mailing list