← 返回首页
bpo-31938: Fix select.epoll.register() signature by vstinner · Pull Request #21067 · python/cpython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

bpo-31938: Fix select.epoll.register() signature#21067

Closed
vstinner wants to merge 1 commit into
python:masterfrom
vstinner:pydoc_select
Closed

bpo-31938: Fix select.epoll.register() signature#21067
vstinner wants to merge 1 commit into
python:masterfrom
vstinner:pydoc_select

Conversation

vstinner commented Jun 23, 2020
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Member

Copy link
Copy Markdown
Member Author

inspect.signature() doesn't see the event_mask. Is it a bug in signature which doesn't support a signature written on two lines?

cc @serhiy-storchaka @1st1 @ambv

11:47:01 vstinner@apu$ ./python Python 3.10.0a0 (heads/pydoc_select:486e11db95, Jun 23 2020, 11:45:39) >>> import select >>> select.epoll.register.__text_signature__ '($self, /, fd,\n eventmask=select.EPOLLIN | select.EPOLLPRI | select.EPOLLOUT)' >>> import inspect >>> inspect.signature(select.epoll.register) <Signature (self, /, fd)>

So pydoc doesn't show the whole signature:

./python -m pydoc select (...) | register(self, /, fd) | Registers a new fd or raises an OSError if the fd is already registered. | | fd | the target file descriptor of the operation | eventmask | a bit set composed of the various EPOLL constants | | The epoll interface supports all file descriptors that support poll.

Copy link
Copy Markdown
Member Author

Oops, @asottile already proposed PR #21066 which is the same change. I close my PR.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Footer

© 2026 GitHub, Inc.