]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
# gh-111700: Fix syntax highlighting for C code in the "What's New In Python 3.12...
authorParth Doshi <doshi.parth9@gmail.com>
Mon, 1 Jan 2024 08:08:05 +0000 (00:08 -0800)
committerGitHub <noreply@github.com>
Mon, 1 Jan 2024 08:08:05 +0000 (10:08 +0200)
Fix PEP 684 syntax highlighting in what's new Python 3.12

Doc/whatsnew/3.12.rst

index 8551b35438e2c3e11e29ab344a03ada0deb76fb1..9a2ccf7ebc6a686ad13194a7abb727002fb23e3c 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,