summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-02-24 16:51:59 (GMT)
committerGitHub <noreply@github.com>2022-02-24 16:51:59 (GMT)
commit042f31da552c19054acd3ef7bb6cfd857bce172b (patch)
treed1aa8f20f873c89adebbac7072d80dceb19d32c4 /Tools
parentec091bd47e2f968b0d1631b9a8104283a7beeb1b (diff)
downloadcpython-042f31da552c19054acd3ef7bb6cfd857bce172b.zip
cpython-042f31da552c19054acd3ef7bb6cfd857bce172b.tar.gz
cpython-042f31da552c19054acd3ef7bb6cfd857bce172b.tar.bz2
bpo-45459: C API uses type names rather than structure names (GH-31528)
Thanks to the new pytypedefs.h, it becomes to use type names like PyObject rather like structure names like "struct _object".
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/clinic/clinic.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py
index 4b4ebb8..14252b2 100755
--- a/Tools/clinic/clinic.py
+++ b/Tools/clinic/clinic.py
@@ -3665,8 +3665,7 @@ class self_converter(CConverter):
self.show_in_signature = False
# tp_new (METHOD_NEW) functions are of type newfunc:
- # typedef PyObject *(*newfunc)(struct _typeobject *, PyObject *, PyObject *);
- # PyTypeObject is a typedef for struct _typeobject.
+ # typedef PyObject *(*newfunc)(PyTypeObject *, PyObject *, PyObject *);
#
# tp_init (METHOD_INIT) functions are of type initproc:
# typedef int (*initproc)(PyObject *, PyObject *, PyObject *);