@@ -622,7 +622,8 @@ Process-wide parameters
622622 It now returns ``NULL `` if called before :c:func: `Py_Initialize `.
623623
624624 .. deprecated-removed :: 3.13 3.15
625- Get :data: `sys.executable ` instead.
625+ Use :c:func: `PyConfig_Get("executable") <PyConfig_Get> `
626+ (:data: `sys.executable `) instead.
626627
627628
628629.. c:function:: wchar_t* Py_GetPrefix()
@@ -644,8 +645,10 @@ Process-wide parameters
644645 It now returns ``NULL `` if called before :c:func: `Py_Initialize `.
645646
646647 .. deprecated-removed :: 3.13 3.15
647- Get :data: `sys.base_prefix ` instead, or :data: `sys.prefix ` if
648- :ref: `virtual environments <venv-def >` need to be handled.
648+ Use :c:func: `PyConfig_Get("base_prefix") <PyConfig_Get> `
649+ (:data: `sys.base_prefix `) instead. Use :c:func:`PyConfig_Get("prefix")
650+ <PyConfig_Get>` (:data: `sys.prefix `) if :ref:`virtual environments
651+ <venv-def>` need to be handled.
649652
650653
651654.. c:function:: wchar_t* Py_GetExecPrefix()
@@ -690,9 +693,11 @@ Process-wide parameters
690693 It now returns ``NULL `` if called before :c:func: `Py_Initialize `.
691694
692695 .. deprecated-removed :: 3.13 3.15
693- Get :data:`sys.base_exec_prefix` instead, or :data:`sys.exec_prefix` if
694- :ref:`virtual environments <venv-def>` need to be handled.
695-
696+ Use :c:func: `PyConfig_Get("base_exec_prefix") <PyConfig_Get> `
697+ (:data: `sys.base_exec_prefix `) instead. Use
698+ :c:func: `PyConfig_Get("exec_prefix") <PyConfig_Get> `
699+ (:data: `sys.exec_prefix `) if :ref: `virtual environments <venv-def >` need
700+ to be handled.
696701
697702.. c :function :: wchar_t * Py_GetProgramFullPath ()
698703
@@ -712,7 +717,8 @@ Process-wide parameters
712717 It now returns ``NULL `` if called before :c:func: `Py_Initialize `.
713718
714719 .. deprecated-removed :: 3.13 3.15
715- Get :data: `sys.executable ` instead.
720+ Use :c:func: `PyConfig_Get("executable") <PyConfig_Get> `
721+ (:data: `sys.executable `) instead.
716722
717723
718724.. c :function :: wchar_t * Py_GetPath ()
@@ -740,8 +746,8 @@ Process-wide parameters
740746 It now returns ``NULL `` if called before :c:func: `Py_Initialize `.
741747
742748 .. deprecated-removed :: 3.13 3.15
743- Get :data: ` sys.path ` instead.
744-
749+ Use :c:func: ` PyConfig_Get("module_search_paths") <PyConfig_Get> `
750+ ( :data: ` sys.path `) instead.
745751
746752.. c :function :: const char * Py_GetVersion ()
747753
@@ -926,8 +932,8 @@ Process-wide parameters
926932 It now returns ``NULL`` if called before :c:func:`Py_Initialize`.
927933
928934 .. deprecated-removed:: 3.13 3.15
929- Get :c:member:`PyConfig. home` or :envvar:`PYTHONHOME` environment
930- variable instead.
935+ Use :c:func:`PyConfig_Get( " home" ) <PyConfig_Get> ` or the
936+ :envvar:`PYTHONHOME` environment variable instead.
931937
932938
933939.. _threads:
0 commit comments