Skip to content

Commit bb1a94f

Browse files
committed
Remove redundant notes added in pythonGH-129850
1 parent b7774ae commit bb1a94f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Doc/c-api/allocation.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,6 @@ Allocating Objects on the Heap
8484
* :c:func:`PyType_GenericAlloc`
8585
* :c:member:`~PyTypeObject.tp_alloc`
8686

87-
Note that this function is unsuitable if *typeobj* has
88-
:c:macro:`Py_TPFLAGS_HAVE_GC` set. For such objects,
89-
use :c:func:`PyObject_GC_New` instead.
90-
9187

9288
.. c:macro:: PyObject_NewVar(TYPE, typeobj, size)
9389
@@ -138,10 +134,6 @@ Allocating Objects on the Heap
138134
* :c:func:`PyType_GenericAlloc`
139135
* :c:member:`~PyTypeObject.tp_alloc`
140136

141-
Note that this function is unsuitable if *typeobj* has
142-
:c:macro:`Py_TPFLAGS_HAVE_GC` set. For such objects,
143-
use :c:func:`PyObject_GC_NewVar` instead.
144-
145137

146138
.. c:function:: void PyObject_Del(void *op)
147139

0 commit comments

Comments
 (0)