Skip to content

[3.10]bpo-41857: Document timeout arguments in select module (GH-22406) #30741

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 21, 2022

Conversation

taleinat
Copy link
Contributor

@taleinat taleinat commented Jan 21, 2022

The docstring for the poll() methods of the select.poll and select.devpoll classes did not describe the expected units of the timeout argument (milliseconds). Previously this information was only available from the online documentation.

This is a potential source of confusion, because other poll() methods in the select module, such as epoll and kqueue Polling objects, use units of seconds (and were documented).

Include the units in the docstring description so that this information is at least available from interactive help.

Co-authored-by: Zane Bitter [email protected]

https://bugs.python.org/issue41857

… select.depoll() doc-strings (pythonGH-22406).

(cherry picked from commit 27df756)

Co-authored-by: Zane Bitter <[email protected]>
@taleinat taleinat changed the title bpo-41857: Document timeout arguments in select module [3.10]bpo-41857: Document timeout arguments in select module Jan 21, 2022
@taleinat taleinat changed the title [3.10]bpo-41857: Document timeout arguments in select module [3.10]bpo-41857: Document timeout arguments in select module (GH-22406) Jan 21, 2022
@bedevere-bot bedevere-bot added the docs Documentation in the Doc dir label Jan 21, 2022
@taleinat taleinat merged commit f6e5972 into python:3.10 Jan 21, 2022
@taleinat taleinat deleted the backport-27df756-3.10 branch January 21, 2022 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants