@@ -79,8 +79,7 @@ The following functions can be safely called before Python is initialized:
7979 the following functions **should not be called ** before the interpreter has
8080 been initialized: :c:func: `Py_EncodeLocale `, :c:func: `Py_GetPath `,
8181 :c:func: `Py_GetPrefix `, :c:func: `Py_GetExecPrefix `,
82- :c:func: `Py_GetProgramFullPath `, :c:func: `Py_GetPythonHome `,
83- :c:func: `Py_GetProgramName `, :c:func: `PyEval_InitThreads `, and
82+ :c:func: `Py_GetProgramFullPath `, :c:func: `Py_GetPythonHome `, :c:func: `PyEval_InitThreads `, and
8483 :c:func: `Py_RunMain `.
8584
8685
@@ -609,23 +608,6 @@ Process-wide parameters
609608 .. deprecated-removed:: 3.11 3.15
610609
611610
612- .. c:function:: wchar_t* Py_GetProgramName()
613-
614- Return the program name set with :c:member:`PyConfig.program_name`, or the default.
615- The returned string points into static storage; the caller should not modify its
616- value.
617-
618- This function should not be called before :c:func: `Py_Initialize `, otherwise
619- it returns ``NULL ``.
620-
621- .. versionchanged :: 3.10
622- It now returns ``NULL `` if called before :c:func: `Py_Initialize `.
623-
624- .. deprecated-removed :: 3.13 3.15
625- Use :c:func: `PyConfig_Get("executable") <PyConfig_Get> `
626- (:data: `sys.executable `) instead.
627-
628-
629611.. c:function:: wchar_t* Py_GetPrefix()
630612
631613 Return the *prefix* for installed platform-independent files. This is derived
0 commit comments