[issue34369] kqueue.control() documentation and implementation mismatch

Berker Peksag report at bugs.python.org
Fri Aug 10 08:00:01 EDT 2018


Berker Peksag <berker.peksag at gmail.com> added the comment:

This is probably a regression from the Argument Clinic conversion.

Another docstring mismatches:

select(rlist, wlist, xlist, timeout=None, /)
    Wait until one or more file descriptors are ready for some kind of I/O.


>>> select.select(timeout=0.1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: select() takes no keyword arguments


poll(timeout=None, /) method of select.poll instance
    Polls the set of registered file descriptors.

>>> select.poll().poll(timeout=0.1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: poll() takes no keyword arguments

----------
nosy: +berker.peksag, taleinat
versions:  -Python 2.7

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


More information about the Python-bugs-list mailing list