Skip to content

Commit f14d8da

Browse files
committed
Serhiy's review: improve docstrings
1 parent 78af9ff commit f14d8da

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

Modules/_interpqueuesmodule.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1569,14 +1569,14 @@ _interpqueues_destroy_impl(PyObject *module, int64_t qid)
15691569
/*[clinic input]
15701570
_interpqueues.list_all
15711571
1572-
Return the list of IDs for all queues.
1572+
Return the list of ID triples for all queues.
15731573
1574-
Each corresponding default unbound op and fallback is also included.
1574+
Each ID triple consists of (ID, default unbound op, default fallback).
15751575
[clinic start generated code]*/
15761576

15771577
static PyObject *
15781578
_interpqueues_list_all_impl(PyObject *module)
1579-
/*[clinic end generated code: output=974280cb6442afdb input=ff9339d6385ed8ef]*/
1579+
/*[clinic end generated code: output=974280cb6442afdb input=19495f02cbb38b33]*/
15801580
{
15811581
int64_t count = 0;
15821582
struct queue_id_and_info *qids = _queues_list_all(&_globals.queues, &count);
@@ -1652,15 +1652,14 @@ _interpqueues_put_impl(PyObject *module, int64_t qid, PyObject *obj,
16521652
_interpqueues.get
16531653
qid: qidarg
16541654
1655-
Return a new object from the data at the front of the queue.
1655+
Return the (object, unbound op) from the front of the queue.
16561656
1657-
The unbound op is also returned.
16581657
If there is nothing to receive then raise QueueEmpty.
16591658
[clinic start generated code]*/
16601659

16611660
static PyObject *
16621661
_interpqueues_get_impl(PyObject *module, int64_t qid)
1663-
/*[clinic end generated code: output=b0988a0e29194f05 input=73a70333af3b1c31]*/
1662+
/*[clinic end generated code: output=b0988a0e29194f05 input=c5bccbc409ad0190]*/
16641663
{
16651664
PyObject *obj = NULL;
16661665
int unboundop = 0;

Modules/clinic/_interpqueuesmodule.c.h

Lines changed: 4 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)