Skip to content

gh-76785: Minor Improvements to "interpreters" Module #116328

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
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix docstrings in the low-level module.
  • Loading branch information
ericsnowcurrently committed Mar 4, 2024
commit dddd40bcf20dd83c90c16b4aaea27b7d679040bd
12 changes: 7 additions & 5 deletions Modules/_xxinterpqueuesmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -1383,7 +1383,7 @@ queuesmod_create(PyObject *self, PyObject *args, PyObject *kwds)
}

PyDoc_STRVAR(queuesmod_create_doc,
"create() -> qid\n\
"create(maxsize, fmt) -> qid\n\
\n\
Create a new cross-interpreter queue and return its unique generated ID.\n\
It is a new reference as though bind() had been called on the queue.");
Expand Down Expand Up @@ -1443,9 +1443,10 @@ queuesmod_list_all(PyObject *self, PyObject *Py_UNUSED(ignored))
}

PyDoc_STRVAR(queuesmod_list_all_doc,
"list_all() -> [qid]\n\
"list_all() -> [(qid, fmt)]\n\
\n\
Return the list of IDs for all queues.");
Return the list of IDs for all queues.\n\
Each corresponding default format is also included.");

static PyObject *
queuesmod_put(PyObject *self, PyObject *args, PyObject *kwds)
Expand All @@ -1471,7 +1472,7 @@ queuesmod_put(PyObject *self, PyObject *args, PyObject *kwds)
}

PyDoc_STRVAR(queuesmod_put_doc,
"put(qid, obj, sharedonly=False)\n\
"put(qid, obj, fmt)\n\
\n\
Add the object's data to the queue.");

Expand Down Expand Up @@ -1501,9 +1502,10 @@ queuesmod_get(PyObject *self, PyObject *args, PyObject *kwds)
}

PyDoc_STRVAR(queuesmod_get_doc,
"get(qid, [default]) -> obj\n\
"get(qid, [default]) -> (obj, fmt)\n\
\n\
Return a new object from the data at the front of the queue.\n\
The object's format is also returned.\n\
\n\
If there is nothing to receive then raise QueueEmpty, unless\n\
a default value is provided. In that case return it.");
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy