Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c68e136 commit 11cfea9Copy full SHA for 11cfea9
1 file changed
Doc/c-api/type.rst
@@ -70,13 +70,14 @@ Type Objects
70
71
.. c:function:: PyObject* PyType_GenericAlloc(PyTypeObject *type, Py_ssize_t nitems)
72
73
- XXX: Document.
74
-
+ Generic handler for the :attr:`tp_alloc` slot of a type object. Use
+ Python's default memory allocation mechanism to allocate a new instance and
75
+ initialize all its contents to *NULL*.
76
77
.. c:function:: PyObject* PyType_GenericNew(PyTypeObject *type, PyObject *args, PyObject *kwds)
78
- Generic handler for the :attr:`tp_new` slot of a type object. Initialize
79
- all instance variables to *NULL*.
+ Generic handler for the :attr:`tp_new` slot of a type object. Create a
80
+ new instance using the type's :attr:`tp_alloc` slot.
81
82
.. c:function:: int PyType_Ready(PyTypeObject *type)
83
0 commit comments