Skip to content

Commit d7bcaf2

Browse files
[3.15] Docs: Fix mimalloc allocator values and typos in C API init docs (GH-160666) (#160715)
(cherry picked from commit 210e7ab) Co-authored-by: Manoj K M <manojkm24dev@gmail.com>
1 parent 9e5726a commit d7bcaf2

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

‎Doc/c-api/init_config.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -880,9 +880,9 @@ PyPreConfig
880880
* ``PYMEM_ALLOCATOR_PYMALLOC_DEBUG`` (``6``): :ref:`Python pymalloc
881881
memory allocator <pymalloc>` with :ref:`debug hooks
882882
<pymem-debug-hooks>`.
883-
* ``PYMEM_ALLOCATOR_MIMALLOC`` (``6``): use ``mimalloc``, a fast
883+
* ``PYMEM_ALLOCATOR_MIMALLOC`` (``7``): use ``mimalloc``, a fast
884884
malloc replacement.
885-
* ``PYMEM_ALLOCATOR_MIMALLOC_DEBUG`` (``7``): use ``mimalloc``, a fast
885+
* ``PYMEM_ALLOCATOR_MIMALLOC_DEBUG`` (``8``): use ``mimalloc``, a fast
886886
malloc replacement with :ref:`debug hooks <pymem-debug-hooks>`.
887887
888888

‎Doc/c-api/interp-lifecycle.rst‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ The following functions can be safely called before Python is initialized:
5151
* :c:func:`Py_GetCopyright`
5252
* :c:func:`Py_GetPlatform`
5353
* :c:func:`Py_GetVersion`
54-
* :c:func:`Py_IsInitialized`
5554

5655
* Utilities:
5756

@@ -762,7 +761,7 @@ deleted. This can be done using interpreter views.
762761
763762
An opaque view of an interpreter.
764763
765-
This is a thread-safe way to access an interpreter that may have be
764+
This is a thread-safe way to access an interpreter that may be
766765
finalizing or already destroyed.
767766
768767
.. versionadded:: 3.15

0 commit comments

Comments
 (0)