]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] GH- gh-111700: Fix syntax highlighting for C code in the "What's New In Python...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 1 Jan 2024 08:14:31 +0000 (09:14 +0100)
committerGitHub <noreply@github.com>
Mon, 1 Jan 2024 08:14:31 +0000 (08:14 +0000)
GH- gh-111700: Fix syntax highlighting for C code in the "What's New In Python 3.12" documentation (GH-113609)

Fix PEP 684 syntax highlighting in what's new Python 3.12
(cherry picked from commit 9ce6c01e38a2fc7a5ce832f1f8c8d9097132556d)

Co-authored-by: Parth Doshi <doshi.parth9@gmail.com>
Doc/whatsnew/3.12.rst

index 257f9ee1f5c410708b74c9d40bfa9740c996d519..78b85f671627eca9a70e207fa40475812ef8e080 100644 (file)
@@ -343,7 +343,9 @@ cores. This is currently only available through the C-API,
 though a Python API is :pep:`anticipated for 3.13 <554>`.
 
 Use the new :c:func:`Py_NewInterpreterFromConfig` function to
-create an interpreter with its own GIL::
+create an interpreter with its own GIL:
+
+.. code-block:: c
 
    PyInterpreterConfig config = {
        .check_multi_interp_extensions = 1,