New submission from Markus Korn <thek...@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
is EPOLL_IN | EPOLL_OUT | EPOLL_PRI.

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 <rep...@bugs.python.org>
<http://bugs.python.org/issue11568>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to