Skip to content

Commit 2ea6d35

Browse files
committed
Remove notes about finalizers
1 parent e08e167 commit 2ea6d35

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

Doc/c-api/list.rst

-12
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,6 @@ List Objects
5959
Raise an exception and return ``-1`` if *list* is not a :class:`list`
6060
object. Return 0 on success.
6161
62-
.. note::
63-
64-
If the finalizer (:meth:`object.__del__`) of a deleted item modify the
65-
list, it is possible that the list is not empty after calling this
66-
function.
67-
6862
.. versionadded:: 3.13
6963
7064
@@ -155,12 +149,6 @@ List Objects
155149
Return ``0`` on success, ``-1`` on failure. Indexing from the end of the
156150
list is not supported.
157151
158-
.. note::
159-
160-
If *itemlist* is ``NULL`` to delete items and the finalizer
161-
(:meth:`object.__del__`) of a deleted item modify the list, it is
162-
possible that the list is longer than expected.
163-
164152
165153
.. c:function:: int PyList_Sort(PyObject *list)
166154

0 commit comments

Comments
 (0)