On 30/06/2011 17:42, Dennis Lee Bieber wrote:
On Thu, 30 Jun 2011 10:37:34 +0200, Ulrich Eckhardt
<ulrich.eckha...@dominolaser.com> declaimed the following in
gmane.comp.python.general:
"time.sleep()" takes a floating point number, so an underflow like for
fixed-size integers in C shouldn't happen. What puzzles me here is your use
of "apparently", because here a negative value actually raises an "IOError:
[Errno 22] Invalid argument" when I call "sleep(-1)".
The system I'm on is a Debian GNU/Linux system running on some x86 hardware,
for the record, and I'm using Python 2.6.6.
WinXP, Python 2.5.<something>
And that was a direct cut&paste from a command window; showing it
had slept for some 90 seconds before I killed it.
Looks like it hasn't changed even in WinXP, Python 3.2.
Is IOError what you'd expect, anyway?
What should it do in Python 3.2? Exception or max(seconds, 0)?
--
http://mail.python.org/mailman/listinfo/python-list