Skip to content

Commit 210e7ab

Browse files
Docs: Fix mimalloc allocator values and typos in C API init docs (#160666)
1 parent b3683c0 commit 210e7ab

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
@@ -889,9 +889,9 @@ PyPreConfig
889889
* ``PYMEM_ALLOCATOR_PYMALLOC_DEBUG`` (``6``): :ref:`Python pymalloc
890890
memory allocator <pymalloc>` with :ref:`debug hooks
891891
<pymem-debug-hooks>`.
892-
* ``PYMEM_ALLOCATOR_MIMALLOC`` (``6``): use ``mimalloc``, a fast
892+
* ``PYMEM_ALLOCATOR_MIMALLOC`` (``7``): use ``mimalloc``, a fast
893893
malloc replacement.
894-
* ``PYMEM_ALLOCATOR_MIMALLOC_DEBUG`` (``7``): use ``mimalloc``, a fast
894+
* ``PYMEM_ALLOCATOR_MIMALLOC_DEBUG`` (``8``): use ``mimalloc``, a fast
895895
malloc replacement with :ref:`debug hooks <pymem-debug-hooks>`.
896896
897897

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ The following functions can be safely called before Python is initialized:
4848
* :c:func:`Py_GetCopyright`
4949
* :c:func:`Py_GetPlatform`
5050
* :c:func:`Py_GetVersion`
51-
* :c:func:`Py_IsInitialized`
5251

5352
* Utilities:
5453

@@ -491,7 +490,7 @@ deleted. This can be done using interpreter views.
491490
492491
An opaque view of an interpreter.
493492
494-
This is a thread-safe way to access an interpreter that may have be
493+
This is a thread-safe way to access an interpreter that may be
495494
finalizing or already destroyed.
496495
497496
.. versionadded:: 3.15

0 commit comments

Comments
 (0)