Skip to content

Commit 3150eab

Browse files
committed
nit
1 parent 86efce6 commit 3150eab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/c-api/memory.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ belonging to a given domain for only the purposes hinted by that domain.
109109
returned by :c:func:`PyMem_RawMalloc` for allocating Python objects or the memory
110110
returned by :c:func:`PyObject_Malloc` for allocating memory for buffers.
111111
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`..
115115

116116
The three allocation domains are:
117117

0 commit comments

Comments
 (0)