[New-bugs-announce] [issue11568] docstring of select.epoll.register() is wrong

Markus Korn report at bugs.python.org
Wed Mar 16 11:39:22 CET 2011

New submission from Markus Korn <thekorn at gmx.de>:

select.epoll.register raises an IOError for already registered fds, however the docstring says the fd gets modified:

Python 2.7.1+ (r271:86832, Feb 24 2011, 15:00:15) 
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import select
>>> print select.epoll.register.__doc__
register(fd[, eventmask]) -> None

Registers a new fd or modifies an already registered fd.
fd is the target file descriptor of the operation.
events is a bit set composed of the various EPOLL constants; the default

The epoll interface supports all file descriptors that support poll.

messages: 131100
nosy: thekorn
priority: normal
severity: normal
status: open
title: docstring of select.epoll.register() is wrong

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list