Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.7] bpo-32568: make select.epoll() and its docs consistent (GH-7840) #8024

Merged
merged 1 commit into from Jun 30, 2018

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington 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)

Co-authored-by: Tal Einat taleinat+github@gmail.com

https://bugs.python.org/issue32568

* `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 <taleinat+github@gmail.com>
@miss-islington
Copy link
Contributor Author

miss-islington commented Jun 30, 2018

@taleinat: Backport status check is done, and it's a success .

@taleinat taleinat merged commit fd1c092 into python:3.7 Jun 30, 2018
@miss-islington miss-islington deleted the backport-0cdf5f4-3.7 branch Jun 30, 2018
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.

None yet

4 participants