diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2023-10-11 21:12:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-11 21:12:36 (GMT) |
commit | 7d5a9826095f4c1c8faec4a832fe4e8dfc00b224 (patch) | |
tree | 3702d3413a87c6f56a4b7e03e49236d105904164 /Doc/c-api | |
parent | cae968ba1708ce23760974e850a0fceee856d926 (diff) | |
download | cpython-7d5a9826095f4c1c8faec4a832fe4e8dfc00b224.zip cpython-7d5a9826095f4c1c8faec4a832fe4e8dfc00b224.tar.gz cpython-7d5a9826095f4c1c8faec4a832fe4e8dfc00b224.tar.bz2 |
[3.12] gh-110631: Fix reST indentation (GH-110724) (#110738)
* Fix wrong indentation in the other dirs.
* Fix more wrong indentation..
(cherry picked from commit 718391f475f2550d99dd794069ca76312f7f6aa6)
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/memory.rst | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Doc/c-api/memory.rst b/Doc/c-api/memory.rst index 1df8c2b..e98c178 100644 --- a/Doc/c-api/memory.rst +++ b/Doc/c-api/memory.rst @@ -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. - - * 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**. + * 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**. .. versionchanged:: 3.12 All allocators must be thread-safe. |