[issue32568] Fix handling of sizehint=-1 in select.epoll()

Tal Einat report at bugs.python.org
Tue Jan 16 05:48:25 EST 2018


New submission from Tal Einat <taleinat at gmail.com>:

In 2fb9ae9dfc5a6830d902332ba93b13387e292ddb, select.epoll() was changed to reject sizehint=-1, despite that still being documented as the default value. Would it be possible to reverse this change, making -1 a special value signaling select.epoll() to use sizehint=FD_SETSIZE-1, as was before this change?

Additionally, in the same commit the docs were changed to say that the sizehint parameter is deprecated and has no effect, but later changes have restored use of sizehint in certain cases without updating the documentation. This inconsistency should be fixed.

For reference, this came up as part of #31938.

----------
messages: 310072
nosy: benjamin.peterson, serhiy.storchaka, taleinat
priority: normal
severity: normal
status: open
title: Fix handling of sizehint=-1 in select.epoll()

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32568>
_______________________________________


More information about the Python-bugs-list mailing list