Skip to content

Conversation

@taleinat
Copy link
Contributor

@taleinat taleinat commented Jun 30, 2018

  • flags is indeed deprecated, but there is a validation on its value for
    backwards compatibility reasons. This adds mention of this in the docs.
  • The docs say that sizehint is deprecated and ignored, but it is still
    used when epoll_create1() is unavailable. This adds mention of this in
    the docs.
  • sizehint=-1 is acceptable again, and is replaced with FD_SETSIZE-1.
    This is needed to have a default value available at the Python level,
    since FD_SETSIZE is not exposed to Python. (see: bpo-31938)
  • Reject sizehint=0 since it is invalid to pass on to epoll_create().

The relevant tests have also been updated.

(cherry picked from commit 0cdf5f4)

https://bugs.python.org/issue32568

…H-7840)

* `flags` is indeed deprecated, but there is a validation on its value for
  backwards compatibility reasons.  This adds mention of this in the docs.
* The docs say that `sizehint` is deprecated and ignored, but it is still
  used when `epoll_create1()` is unavailable. This adds mention of this in
  the docs.
* `sizehint=-1` is acceptable again, and is replaced with `FD_SETSIZE-1`.
  This is needed to have a default value available at the Python level,
  since `FD_SETSIZE` is not exposed to Python. (see: bpo-31938)
* Reject `sizehint=0` since it is invalid to pass on to `epoll_create()`.

The relevant tests have also been updated..
(cherry picked from commit 0cdf5f4)

Co-authored-by: Tal Einat <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants