[issue3852] kqueue.control requires 2 params while docs say max_events (the second) defaults to 0

Gabriel Genellina report at bugs.python.org
Sun Sep 21 01:05:49 CEST 2008


Gabriel Genellina <gagsl-py2 at yahoo.com.ar> added the comment:

Attached a documentation patch, including the kqueue.control function 
docstring.

But I wonder if the code was incorrect instead - both the 
documentation and the function docstring specified a default value for 
max_events=0, and the corresponding variable was initialized to 0.
Perhaps the author meant to use PyArg_ParseTuple(args, "O|
iO:control",...) instead of the current "Oi|O:control"

----------
keywords: +patch
nosy: +gagenellina
Added file: http://bugs.python.org/file11536/select.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3852>
_______________________________________


More information about the Python-bugs-list mailing list