• Tal Einat's avatar
    bpo-32568: make select.epoll() and its docs consistent (#7840) · 0cdf5f42
    Tal Einat yazdı
    * `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.
    0cdf5f42
Adı
Son kayıt (commit)
Son güncelleme
.github Loading commit data...
.vsts Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Programs Loading commit data...
Python Loading commit data...
Tools Loading commit data...
m4 Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README.rst Loading commit data...
aclocal.m4 Loading commit data...
config.guess Loading commit data...
config.sub Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...