Re: [Python-Dev] time.sleep(-1) behaviour

2011-07-01 Thread Tim Lesher
On Fri, Jul 1, 2011 at 08:46, Nick Coghlan wrote: > For Sleep, yes, but the time.sleep() docs [1] are completely silent on > the behaviour of negative sleep values at the Python level. Question 3 > isn't "Is there something wrong with Sleep()?", it is "Is there > something wrong with the way time.

Re: [Python-Dev] time.sleep(-1) behaviour

2011-07-01 Thread Victor Stinner
Le vendredi 01 juillet 2011 à 08:17 -0400, Tim Lesher a écrit : > On Thu, Jun 30, 2011 at 15:13, Ulrich Eckhardt > wrote: > > Hi! > > > > This is a request for clarification for the thread "how to call a function > > for > > evry 10 seconds" from the user mailinglist/newsgroup. > > > > > > The gi

Re: [Python-Dev] time.sleep(-1) behaviour

2011-07-01 Thread Nick Coghlan
On Fri, Jul 1, 2011 at 10:17 PM, Tim Lesher wrote: > On Thu, Jun 30, 2011 at 15:13, Ulrich Eckhardt > wrote: >> Hi! >> >> This is a request for clarification for the thread "how to call a function >> for >> evry 10 seconds" from the user mailinglist/newsgroup. >> >> >> The gist is this: >> 1. On

Re: [Python-Dev] time.sleep(-1) behaviour

2011-07-01 Thread Tim Lesher
On Thu, Jun 30, 2011 at 15:13, Ulrich Eckhardt wrote: > Hi! > > This is a request for clarification for the thread "how to call a function for > evry 10 seconds" from the user mailinglist/newsgroup. > > > The gist is this: > 1. On Linux/Python 2.6, time.sleep(-1.0) raises an IOError. > 2. On MS Wi

Re: [Python-Dev] time.sleep(-1) behaviour

2011-06-30 Thread Ulrich Eckhardt
On Thursday 30 June 2011, R. David Murray wrote: > Please file a bug report at bugs.python.org. Filed as bug #12459. Uli ** Domino Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland Geschäftsführer: Thor

Re: [Python-Dev] time.sleep(-1) behaviour

2011-06-30 Thread Victor Stinner
Le jeudi 30 juin 2011 à 21:13 +0200, Ulrich Eckhardt a écrit : > Hi! > > This is a request for clarification for the thread "how to call a function > for > evry 10 seconds" from the user mailinglist/newsgroup. > > > The gist is this: > 1. On Linux/Python 2.6, time.sleep(-1.0) raises an IOError

Re: [Python-Dev] time.sleep(-1) behaviour

2011-06-30 Thread R. David Murray
On Thu, 30 Jun 2011 21:13:46 +0200, Ulrich Eckhardt wrote: > 1. Is the IOError somehow explainable? > 2. Is the IOError acceptable or a bug? > 3. Is the behaviour under MS Windows acceptable or a bug? > 4. Since time.sleep() is documented to possibly sleep a bit longer than > specified, someone

[Python-Dev] time.sleep(-1) behaviour

2011-06-30 Thread Ulrich Eckhardt
Hi! This is a request for clarification for the thread "how to call a function for evry 10 seconds" from the user mailinglist/newsgroup. The gist is this: 1. On Linux/Python 2.6, time.sleep(-1.0) raises an IOError. 2. On MS Windows/Python 2.5 or 2.7 this sleeps forever. It seems that convertin