Skip to content

Commit 40bc89c

Browse files
Update Doc/c-api/memory.rst
Co-authored-by: Peter Bierma <[email protected]>
1 parent a92d938 commit 40bc89c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/c-api/memory.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ belonging to a given domain for only the purposes hinted by that domain.
108108
(although this is the recommended practice). For example, one could use the memory
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.
111-
However, in the free-threaded build, Python objects must be allocated through :c:func:`PyObject_Malloc`.
111+
However, in the free-threaded build, Python objects *must* be allocated through :c:func:`PyObject_Malloc`.
112112
Non-Python objects must not be allocated this function, for example, it is currently acceptable to
113113
allocate buffers(non-Python objects) through :c:func:`PyObject_Malloc`; that will no longer be allowed
114114
and buffers should instead be allocated through :c:func:`PyMem_Malloc`, :c:func:`PyMem_RawMalloc`, or :c:func:`malloc`.

0 commit comments

Comments
 (0)