@@ -58,24 +58,34 @@ Allocating Objects on the Heap
5858 use :c:func:`PyObject_GC_NewVar` instead.
5959
6060
61- .. c:function:: void PyObject_Del(void *op)
62-
63- Releases memory allocated to an object using :c:macro: `PyObject_New ` or
64- :c:macro: `PyObject_NewVar `. This is normally called from the
65- :c:member: `~PyTypeObject.tp_dealloc ` handler specified in the object's type. The fields of
66- the object should not be accessed after this call as the memory is no
67- longer a valid Python object.
68-
69-
70- .. c :var :: PyObject _Py_NoneStruct
71-
72- Object which is visible in Python as ``None ``. This should only be accessed
73- using the :c:macro: `Py_None ` macro, which evaluates to a pointer to this
74- object.
75-
76-
77- .. seealso ::
78-
79- :ref: `moduleobjects `
80- To allocate and create extension modules.
81-
61+ Deprecated aliases
62+ ^^^^^^^^^^^^^^^^^^
63+
64+ These are :term:`soft deprecated` aliases to existing functions and macros.
65+ They exist solely for backwards compatibility.
66+
67+
68+ .. list-table::
69+ :widths: auto
70+ :header-rows: 1
71+
72+ * * Deprecated alias
73+ * Function
74+ * * .. c:macro:: PyObject_NEW(type, typeobj)
75+ * :c:macro:`PyObject_New`
76+ * * .. c:macro:: PyObject_NEW_VAR(type, typeobj, n)
77+ * :c:macro:`PyObject_NewVar`
78+ * * .. c:macro:: PyObject_INIT(op, typeobj)
79+ * :c:func:`PyObject_Init`
80+ * * .. c:macro:: PyObject_INIT_VAR(op, typeobj, n)
81+ * :c:func:`PyObject_InitVar`
82+ * * .. c:macro:: PyObject_MALLOC(n)
83+ * :c:func:`PyObject_Malloc`
84+ * * .. c:macro:: PyObject_REALLOC(p, n)
85+ * :c:func:`PyObject_Realloc`
86+ * * .. c:macro:: PyObject_FREE(p)
87+ * :c:func:`PyObject_Free`
88+ * * .. c:macro:: PyObject_DEL(p)
89+ * :c:func:`PyObject_Free`
90+ * * .. c:macro:: PyObject_Del(p)
91+ * :c:func:`PyObject_Free`
0 commit comments