@@ -622,7 +622,8 @@ Process-wide parameters
622
622
It now returns ``NULL `` if called before :c:func: `Py_Initialize `.
623
623
624
624
.. 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.
626
627
627
628
628
629
.. c:function:: wchar_t* Py_GetPrefix()
@@ -644,8 +645,10 @@ Process-wide parameters
644
645
It now returns ``NULL `` if called before :c:func: `Py_Initialize `.
645
646
646
647
.. 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.
649
652
650
653
651
654
.. c:function:: wchar_t* Py_GetExecPrefix()
@@ -690,9 +693,11 @@ Process-wide parameters
690
693
It now returns ``NULL `` if called before :c:func: `Py_Initialize `.
691
694
692
695
.. 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.
696
701
697
702
.. c :function :: wchar_t * Py_GetProgramFullPath ()
698
703
@@ -712,7 +717,8 @@ Process-wide parameters
712
717
It now returns ``NULL `` if called before :c:func: `Py_Initialize `.
713
718
714
719
.. 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.
716
722
717
723
718
724
.. c :function :: wchar_t * Py_GetPath ()
@@ -740,8 +746,8 @@ Process-wide parameters
740
746
It now returns ``NULL `` if called before :c:func: `Py_Initialize `.
741
747
742
748
.. 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.
745
751
746
752
.. c :function :: const char * Py_GetVersion ()
747
753
@@ -926,8 +932,8 @@ Process-wide parameters
926
932
It now returns ``NULL`` if called before :c:func:`Py_Initialize`.
927
933
928
934
.. 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.
931
937
932
938
933
939
.. _threads:
0 commit comments