Commit 11cfea92 authored by Eli Bendersky's avatar Eli Bendersky

Issue #14424: Document PyType_GenericAlloc, and fix the documentation of PyType_GenericNew

parent c68e1368
...@@ -70,13 +70,14 @@ Type Objects ...@@ -70,13 +70,14 @@ Type Objects
.. c:function:: PyObject* PyType_GenericAlloc(PyTypeObject *type, Py_ssize_t nitems) .. c:function:: PyObject* PyType_GenericAlloc(PyTypeObject *type, Py_ssize_t nitems)
XXX: Document. 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
initialize all its contents to *NULL*.
.. c:function:: PyObject* PyType_GenericNew(PyTypeObject *type, PyObject *args, PyObject *kwds) .. c:function:: PyObject* PyType_GenericNew(PyTypeObject *type, PyObject *args, PyObject *kwds)
Generic handler for the :attr:`tp_new` slot of a type object. Initialize Generic handler for the :attr:`tp_new` slot of a type object. Create a
all instance variables to *NULL*. new instance using the type's :attr:`tp_alloc` slot.
.. c:function:: int PyType_Ready(PyTypeObject *type) .. c:function:: int PyType_Ready(PyTypeObject *type)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment