[issue21302] time.sleep (floatsleep()) should use clock_nanosleep() on Linux

STINNER Victor report at bugs.python.org
Sun Apr 27 02:36:47 CEST 2014


STINNER Victor added the comment:

2014-04-27 2:26 GMT+02:00 Shankar Unni <report at bugs.python.org>:
>> If you want to modify time.sleep(), you must be careful of the portability: Windows, Linux, but also Mac OS X, FreeBSD, Solaris, etc.
>
> Oh, I totally agree. What I'm trying to do is to define another autoconf flag (HAVE_CLOCK_NANOSLEEP), that does a feature test and enable that flag, and just use that if available.

I'm talking about the expected behaviour which can be found in the
documentation of the function:
https://docs.python.org/dev/library/time.html#time.sleep

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21302>
_______________________________________


More information about the Python-bugs-list mailing list