Skip to content

Commit e559528

Browse files
authored
[3.11] Docs: update using/configure.rst (GH-116274) (#116277)
1 parent 1cc1d08 commit e559528

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

Doc/using/configure.rst

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
Configure Python
33
****************
44

5+
.. highlight:: sh
6+
57
.. _configure-options:
68

79
Configure Options
@@ -587,7 +589,9 @@ the version of the cross compiled host Python.
587589

588590
An environment variable that points to a file with configure overrides.
589591

590-
Example *config.site* file::
592+
Example *config.site* file:
593+
594+
.. code-block:: ini
591595
592596
# config.site-aarch64
593597
ac_cv_buggy_getaddrinfo=no
@@ -652,7 +656,9 @@ C extensions
652656

653657
Some C extensions are built as built-in modules, like the ``sys`` module.
654658
They are built with the ``Py_BUILD_CORE_BUILTIN`` macro defined.
655-
Built-in modules have no ``__file__`` attribute::
659+
Built-in modules have no ``__file__`` attribute:
660+
661+
.. code-block:: pycon
656662
657663
>>> import sys
658664
>>> sys
@@ -664,7 +670,9 @@ Built-in modules have no ``__file__`` attribute::
664670
665671
Other C extensions are built as dynamic libraries, like the ``_asyncio`` module.
666672
They are built with the ``Py_BUILD_CORE_MODULE`` macro defined.
667-
Example on Linux x86-64::
673+
Example on Linux x86-64:
674+
675+
.. code-block:: pycon
668676
669677
>>> import _asyncio
670678
>>> _asyncio

0 commit comments

Comments
 (0)