mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-110631: Fix reST indentation (#110724)
* Fix wrong indentation in the other dirs. * Fix more wrong indentation.
This commit is contained in:
parent
bb7923f556
commit
718391f475
8 changed files with 56 additions and 58 deletions
|
@ -491,18 +491,18 @@ Customize Memory Allocators
|
|||
|
||||
:c:func:`PyMem_SetAllocator` does have the following contract:
|
||||
|
||||
* It can be called after :c:func:`Py_PreInitialize` and before
|
||||
:c:func:`Py_InitializeFromConfig` to install a custom memory
|
||||
allocator. There are no restrictions over the installed allocator
|
||||
other than the ones imposed by the domain (for instance, the Raw
|
||||
Domain allows the allocator to be called without the GIL held). See
|
||||
:ref:`the section on allocator domains <allocator-domains>` for more
|
||||
information.
|
||||
* It can be called after :c:func:`Py_PreInitialize` and before
|
||||
:c:func:`Py_InitializeFromConfig` to install a custom memory
|
||||
allocator. There are no restrictions over the installed allocator
|
||||
other than the ones imposed by the domain (for instance, the Raw
|
||||
Domain allows the allocator to be called without the GIL held). See
|
||||
:ref:`the section on allocator domains <allocator-domains>` for more
|
||||
information.
|
||||
|
||||
* If called after Python has finish initializing (after
|
||||
:c:func:`Py_InitializeFromConfig` has been called) the allocator
|
||||
**must** wrap the existing allocator. Substituting the current
|
||||
allocator for some other arbitrary one is **not supported**.
|
||||
* If called after Python has finish initializing (after
|
||||
:c:func:`Py_InitializeFromConfig` has been called) the allocator
|
||||
**must** wrap the existing allocator. Substituting the current
|
||||
allocator for some other arbitrary one is **not supported**.
|
||||
|
||||
.. versionchanged:: 3.12
|
||||
All allocators must be thread-safe.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue