[New-bugs-announce] [issue23646] PEP 475: handle EINTR in the time module, retry sleep()

STINNER Victor report at bugs.python.org
Thu Mar 12 16:37:42 CET 2015


New submission from STINNER Victor:

Attached patch changes time.sleep() to retry select() when select() is interrupted by a signal or retry WaitForSingleObjectEx() when the signal SIGINT is received on Windows.

The patch drops support for EMX, sorry! I didn't know EMX, I had to Google it: "EMX is a free 32-bit DOS extender which adds some properties of Unix to MS-compatible DOS and IBM's OS/2 operating systems." (OS/2 support was dropped in Python 3.4  by the PEP 11.)

The patch also drops support for Watcom C compiler. I guess that it's also something specific to MS-DOS or very old (and unsupported) Windows versions.

select.select() is available on all platforms according to the doc, so I don't understand why we would not use it on all platforms for time.sleep() in 2015!
https://docs.python.org/dev/library/select.html#select.select

----------
files: sleep_eintr.patch
keywords: patch
messages: 237948
nosy: haypo, neologix, pitrou
priority: normal
severity: normal
status: open
title: PEP 475: handle EINTR in the time module, retry sleep()
versions: Python 3.5
Added file: http://bugs.python.org/file38454/sleep_eintr.patch

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


More information about the New-bugs-announce mailing list