Skip to content

Commit 1c00f72

Browse files
zanebtaleinat
authored andcommitted
[3.9] bpo-41857: mention timeout argument units in select.poll() and select.depoll() doc-strings (pythonGH-22406).
(cherry picked from commit 27df756) Co-authored-by: Zane Bitter <[email protected]>
1 parent c6691a7 commit 1c00f72

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

Modules/clinic/selectmodule.c.h

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/selectmodule.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,8 @@ select_poll_unregister_impl(pollObject *self, int fd)
580580
select.poll.poll
581581
582582
timeout as timeout_obj: object = None
583+
The maximum time to wait in milliseconds, or else None (or a negative
584+
value) to wait indefinitely.
583585
/
584586
585587
Polls the set of registered file descriptors.
@@ -590,7 +592,7 @@ report, as a list of (fd, event) 2-tuples.
590592

591593
static PyObject *
592594
select_poll_poll_impl(pollObject *self, PyObject *timeout_obj)
593-
/*[clinic end generated code: output=876e837d193ed7e4 input=7a446ed45189e894]*/
595+
/*[clinic end generated code: output=876e837d193ed7e4 input=c2f6953ec45e5622]*/
594596
{
595597
PyObject *result_list = NULL;
596598
int poll_result, i, j;
@@ -911,6 +913,8 @@ select_devpoll_unregister_impl(devpollObject *self, int fd)
911913
/*[clinic input]
912914
select.devpoll.poll
913915
timeout as timeout_obj: object = None
916+
The maximum time to wait in milliseconds, or else None (or a negative
917+
value) to wait indefinitely.
914918
/
915919
916920
Polls the set of registered file descriptors.
@@ -921,7 +925,7 @@ report, as a list of (fd, event) 2-tuples.
921925

922926
static PyObject *
923927
select_devpoll_poll_impl(devpollObject *self, PyObject *timeout_obj)
924-
/*[clinic end generated code: output=2654e5457cca0b3c input=fd0db698d84f0333]*/
928+
/*[clinic end generated code: output=2654e5457cca0b3c input=3c3f0a355ec2bedb]*/
925929
{
926930
struct dvpoll dvp;
927931
PyObject *result_list = NULL;

0 commit comments

Comments
 (0)