File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ belonging to a given domain for only the purposes hinted by that domain.
108
108
(although this is the recommended practice). For example, one could use the memory
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
- 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 `.
112
112
Non-Python objects must not be allocated this function, for example, it is currently acceptable to
113
113
allocate buffers(non-Python objects) through :c:func: `PyObject_Malloc `; that will no longer be allowed
114
114
and buffers should instead be allocated through :c:func: `PyMem_Malloc `, :c:func: `PyMem_RawMalloc `, or :c:func: `malloc `.
You can’t perform that action at this time.
0 commit comments