mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
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".
This commit is contained in:
parent
ec091bd47e
commit
042f31da55
23 changed files with 69 additions and 75 deletions
|
|
@ -3665,8 +3665,7 @@ def pre_render(self):
|
|||
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 *);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue