8000 gh-112050: Convert most methods on collections.deque to use Argument Clinic by mpage · Pull Request #113963 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-112050: Convert most methods on collections.deque to use Argument Clinic #113963

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 11 commits into from
Jan 29, 2024
Merged
Prev Previous commit
Next Next commit
Fix error in docstring for popleft
We pop the leftmost, not the rightmost.
  • Loading branch information
mpage committed Jan 11, 2024
commit 991f686c111bb1e339410384984b1dc862e0779b
4 changes: 2 additions & 2 deletions Modules/_collectionsmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,12 +277,12 @@ _collections.deque.popleft

deque: dequeobject

Remove and return the rightmost element.
Remove and return the leftmost element.
[clinic start generated code]*/

static PyObject *
_collections_deque_popleft_impl(dequeobject *deque)
/*[clinic end generated code: output=8cd77178b5116aba input=39d64df4664392d3]*/
/*[clinic end generated code: output=8cd77178b5116aba input=0ca92ec89734848a]*/
{
PyObject *item;
block *prevblock;
Expand Down
4 changes: 2 additions & 2 deletions Modules/clinic/_collectionsmodule.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0