You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Doc/c-api/memory.rst
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -109,9 +109,9 @@ belonging to a given domain for only the purposes hinted by that domain.
109
109
returned by :c:func:`PyMem_RawMalloc` for allocating Python objects or the memory
110
110
returned by :c:func:`PyObject_Malloc` for allocating memory for buffers.
111
111
However, in the free-threaded build, Python objects must be allocated through :c:func:`PyObject_Malloc`.
112
-
Non-Python objects must not be allocated this function, for example,
113
-
it is currently acceptable to allocate buffers(non-Python objects) through :c:func:`PyObject_Malloc`;
114
-
that will no longer be allowed and buffers should instead be allocated through :c:func:`PyMem_Malloc`, :c:func:`PyMem_RawMalloc`, or :c:func:`malloc`..
112
+
Non-Python objects must not be allocated this function, for example, it is currently acceptable to
113
+
allocate buffers(non-Python objects) through :c:func:`PyObject_Malloc`; that will no longer be allowed
114
+
and buffers should instead be allocated through :c:func:`PyMem_Malloc`, :c:func:`PyMem_RawMalloc`, or :c:func:`malloc`..
0 commit comments