@@ -24,11 +24,15 @@ There are two kinds of configuration:
2424 environments variables are ignored, the LC_CTYPE locale is left unchanged and
2525 no signal handler is registred.
2626
27+ The :c:func: `Py_RunMain ` function can be used to write a customized Python
28+ program.
29+
2730See also :ref: `Initialization, Finalization, and Threads <initialization >`.
2831
2932.. seealso ::
3033 :pep: `587 ` "Python Initialization Configuration".
3134
35+
3236Example
3337=======
3438
@@ -532,7 +536,7 @@ PyConfig
532536
533537 Default: ``NULL``.
534538
535- Part of the :ref:`Path Configuration <init-path-config>` output.
539+ Part of the :ref:`Python Path Configuration <init-path-config>` output.
536540
537541 .. c:member:: wchar_t* base_executable
538542
@@ -544,15 +548,15 @@ PyConfig
544548
545549 Default: ``NULL``.
546550
547- Part of the :ref:`Path Configuration <init-path-config>` output.
551+ Part of the :ref:`Python Path Configuration <init-path-config>` output.
548552
549553 .. c:member:: wchar_t* base_prefix
550554
551555 :data:`sys.base_prefix`.
552556
553557 Default: ``NULL``.
554558
555- Part of the :ref:`Path Configuration <init-path-config>` output.
559+ Part of the :ref:`Python Path Configuration <init-path-config>` output.
556560
557561 .. c:member:: int buffered_stdio
558562
@@ -634,7 +638,7 @@ PyConfig
634638
635639 Default: ``NULL``.
636640
637- Part of the :ref:`Path Configuration <init-path-config>` output.
641+ Part of the :ref:`Python Path Configuration <init-path-config>` output.
638642
639643 .. c:member:: wchar_t* executable
640644
@@ -643,7 +647,7 @@ PyConfig
643647
644648 Default: ``NULL``.
645649
646- Part of the :ref:`Path Configuration <init-path-config>` output.
650+ Part of the :ref:`Python Path Configuration <init-path-config>` output.
647651
648652 .. c:member:: int faulthandler
649653
@@ -726,7 +730,7 @@ PyConfig
726730
727731 Default: ``NULL``.
728732
729- Part of the :ref:`Path Configuration <init-path-config>` input.
733+ Part of the :ref:`Python Path Configuration <init-path-config>` input.
730734
731735 .. c:member:: int import_time
732736
@@ -817,7 +821,7 @@ PyConfig
817821 Default: value of the ``PLATLIBDIR`` macro which is set at configure time
818822 by ``--with-platlibdir`` (default: ``"lib" ``).
819823
820- Part of the :ref:`Path Configuration <init-path-config>` input.
824+ Part of the :ref:`Python Path Configuration <init-path-config>` input.
821825
822826 .. versionadded:: 3.9
823827
@@ -830,22 +834,22 @@ PyConfig
830834
831835 Default: ``NULL``.
832836
833- Part of the :ref:`Path Configuration <init-path-config>` input.
837+ Part of the :ref:`Python Path Configuration <init-path-config>` input.
834838
835839 .. c:member:: PyWideStringList module_search_paths
836840 .. c:member:: int module_search_paths_set
837841
838842 Module search paths: :data:`sys.path`.
839843
840844 If :c:member:`~PyConfig.module_search_paths_set` is equal to 0, the
841- function calculating the :ref:`Path Configuration <init-path-config>`
845+ function calculating the :ref:`Python Path Configuration <init-path-config>`
842846 overrides the :c:member:`~PyConfig.module_search_paths` and sets
843847 :c:member:`~PyConfig.module_search_paths_set` to ``1``.
844848
845849 Default: empty list (``module_search_paths ``) and ``0``
846850 (``module_search_paths_set ``).
847851
848- Part of the :ref:`Path Configuration <init-path-config>` output.
852+ Part of the :ref:`Python Path Configuration <init-path-config>` output.
849853
850854 .. c:member:: int optimization_level
851855
@@ -911,15 +915,15 @@ PyConfig
911915
912916 .. c:member:: int pathconfig_warnings
913917
914- On Unix, if non-zero, calculating the :ref:`Path Configuration
918+ On Unix, if non-zero, calculating the :ref:`Python Path Configuration
915919 <init-path-config>` can log warnings into ``stderr``. If equals to 0,
916920 suppress these warnings.
917921
918922 It has no effect on Windows.
919923
920924 Default: ``1`` in Python mode, ``0`` in isolated mode.
921925
922- Part of the :ref:`Path Configuration <init-path-config>` input.
926+ Part of the :ref:`Python Path Configuration <init-path-config>` input.
923927
924928 .. c:member:: wchar_t* prefix
925929
@@ -928,7 +932,7 @@ PyConfig
928932
929933 Default: ``NULL``.
930934
931- Part of the :ref:`Path Configuration <init-path-config>` output.
935+ Part of the :ref:`Python Path Configuration <init-path-config>` output.
932936
933937 .. c:member:: wchar_t* program_name
934938
@@ -946,7 +950,7 @@ PyConfig
946950
947951 Default: ``NULL``.
948952
949- Part of the :ref:`Path Configuration <init-path-config>` input.
953+ Part of the :ref:`Python Path Configuration <init-path-config>` input.
950954
951955 .. c:member:: wchar_t* pycache_prefix
952956
@@ -1262,7 +1266,7 @@ and user site directory. The C standard streams (ex: ``stdout``) and the
12621266LC_CTYPE locale are left unchanged. Signal handlers are not installed.
12631267
12641268Configuration files are still used with this configuration. Set the
1265- :ref:`Path Configuration <init-path-config>` ("output fields") to ignore these
1269+ :ref:`Python Path Configuration <init-path-config>` ("output fields") to ignore these
12661270configuration files and avoid the function computing the default path
12671271configuration.
12681272
@@ -1287,8 +1291,8 @@ and :ref:`Python UTF-8 Mode <utf8-mode>`
12871291
12881292.. _init-path-config:
12891293
1290- Path Configuration
1291- ==================
1294+ Python Path Configuration
1295+ =========================
12921296
12931297:c:type:`PyConfig` contains multiple fields for the path configuration:
12941298
0 commit comments