Skip to content

Commit 27df756

Browse files
authored
bpo-41857: mention timeout argument units in select.poll() and select.depoll() doc-strings (GH-22406)
1 parent 9e87c0e commit 27df756

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
@@ -570,6 +570,8 @@ select_poll_unregister_impl(pollObject *self, int fd)
570570
select.poll.poll
571571
572572
timeout as timeout_obj: object = None
573+
The maximum time to wait in milliseconds, or else None (or a negative
574+
value) to wait indefinitely.
573575
/
574576
575577
Polls the set of registered file descriptors.
@@ -580,7 +582,7 @@ report, as a list of (fd, event) 2-tuples.
580582

581583
static PyObject *
582584
select_poll_poll_impl(pollObject *self, PyObject *timeout_obj)
583-
/*[clinic end generated code: output=876e837d193ed7e4 input=7a446ed45189e894]*/
585+
/*[clinic end generated code: output=876e837d193ed7e4 input=c2f6953ec45e5622]*/
584586
{
585587
PyObject *result_list = NULL;
586588
int poll_result, i, j;
@@ -894,6 +896,8 @@ select_devpoll_unregister_impl(devpollObject *self, int fd)
894896
/*[clinic input]
895897
select.devpoll.poll
896898
timeout as timeout_obj: object = None
899+
The maximum time to wait in milliseconds, or else None (or a negative
900+
value) to wait indefinitely.
897901
/
898902
899903
Polls the set of registered file descriptors.
@@ -904,7 +908,7 @@ report, as a list of (fd, event) 2-tuples.
904908

905909
static PyObject *
906910
select_devpoll_poll_impl(devpollObject *self, PyObject *timeout_obj)
907-
/*[clinic end generated code: output=2654e5457cca0b3c input=fd0db698d84f0333]*/
911+
/*[clinic end generated code: output=2654e5457cca0b3c input=3c3f0a355ec2bedb]*/
908912
{
909913
struct dvpoll dvp;
910914
PyObject *result_list = NULL;

0 commit comments

Comments
 (0)