-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use positional-only parameters for the __new__
- Loading branch information
Showing
3 changed files
with
12 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#include "Python.h" | ||
#include "structmember.h" | ||
#include "clinic/_collectionsmodule.c.h" | ||
|
||
#ifdef STDC_HEADERS | ||
#include <stddef.h> | ||
|
@@ -13,6 +12,9 @@ class _tuplegetter "_tuplegetterobject *" "&tuplegetter_type" | |
[clinic start generated code]*/ | ||
/*[clinic end generated code: output=da39a3ee5e6b4b0d input=ee5ed5baabe35068]*/ | ||
|
||
static PyTypeObject tuplegetter_type; | ||
#include "clinic/_collectionsmodule.c.h" | ||
|
||
/* collections module implementation of a deque() datatype | ||
Written and maintained by Raymond D. Hettinger <[email protected]> | ||
*/ | ||
|
@@ -2348,12 +2350,12 @@ _tuplegetter.__new__ as tuplegetter_new | |
index: Py_ssize_t | ||
doc: object | ||
/ | ||
[clinic start generated code]*/ | ||
|
||
static PyObject * | ||
tuplegetter_new_impl(PyTypeObject *type, Py_ssize_t index, PyObject *doc) | ||
/*[clinic end generated code: output=014be444ad80263f input=bed3e2ac189db22a]*/ | ||
/*[clinic end generated code: output=014be444ad80263f input=87c576a5bdbc0bbb]*/ | ||
{ | ||
_tuplegetterobject* self; | ||
self = (_tuplegetterobject *)type->tp_alloc(type, 0); | ||
|
@@ -2387,7 +2389,6 @@ tuplegetterdescr_get(PyObject *self, PyObject *obj, PyObject *type) | |
return result; | ||
} | ||
|
||
|
||
static int | ||
tuplegetter_traverse(PyObject *self, visitproc visit, void *arg) | ||
{ | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.