@@ -323,6 +323,11 @@ Process-wide parameters
323323 single: main()
324324 triple: stdin; stdout; sdterr
325325
326+ This API is kept for backward compatibility: setting
327+ :c:member: `PyConfig.stdio_encoding ` and :c:member: `PyConfig.stdio_errors `
328+ should be used instead, see :ref: `Python Initialization Configuration
329+ <init-config>`.
330+
326331 This function should be called before :c:func: `Py_Initialize `, if it is
327332 called at all. It specifies which encoding and error handling to use
328333 with standard IO, with the same meanings as in :func: `str.encode `.
@@ -345,6 +350,8 @@ Process-wide parameters
345350
346351 .. versionadded:: 3.4
347352
353+ .. deprecated:: 3.11
354+
348355
349356.. c:function:: void Py_SetProgramName(const wchar_t *name)
350357
@@ -353,6 +360,10 @@ Process-wide parameters
353360 single: main()
354361 single: Py_GetPath()
355362
363+ This API is kept for backward compatibility: setting
364+ :c:member: `PyConfig.program_name ` should be used instead, see :ref: `Python
365+ Initialization Configuration <init-config>`.
366+
356367 This function should be called before :c:func: `Py_Initialize ` is called for
357368 the first time, if it is called at all. It tells the interpreter the value
358369 of the ``argv[0] `` argument to the :c:func: `main ` function of the program
@@ -367,6 +378,8 @@ Process-wide parameters
367378 Use :c:func:`Py_DecodeLocale` to decode a bytes string to get a
368379 :c:type:`wchar_*` string.
369380
381+ .. deprecated:: 3.11
382+
370383
371384.. c:function:: wchar* Py_GetProgramName()
372385
@@ -495,6 +508,11 @@ Process-wide parameters
495508 single: path (in module sys)
496509 single: Py_GetPath()
497510
511+ This API is kept for backward compatibility: setting
512+ :c:member:`PyConfig.module_search_paths` and
513+ :c:member:`PyConfig.module_search_paths_set` should be used instead, see
514+ :ref:`Python Initialization Configuration <init-config>`.
515+
498516 Set the default module search path. If this function is called before
499517 :c:func:`Py_Initialize`, then :c:func:`Py_GetPath` won't attempt to compute a
500518 default search path but uses the one provided instead. This is useful if
@@ -518,6 +536,8 @@ Process-wide parameters
518536 The program full path is now used for :data:`sys.executable`, instead
519537 of the program name.
520538
539+ .. deprecated:: 3.11
540+
521541
522542.. c:function:: const char* Py_GetVersion()
523543
@@ -617,6 +637,9 @@ Process-wide parameters
617637 Use :c:func: `Py_DecodeLocale ` to decode a bytes string to get a
618638 :c:type: `wchar_* ` string.
619639
640+ See also :c:member: `PyConfig.orig_argv ` and :c:member: `PyConfig.argv `
641+ members of the :ref: `Python Initialization Configuration <init-config >`.
642+
620643 .. note ::
621644 It is recommended that applications embedding the Python interpreter
622645 for purposes other than executing a single script pass ``0 `` as *updatepath *,
@@ -644,11 +667,18 @@ Process-wide parameters
644667 Use :c:func: `Py_DecodeLocale ` to decode a bytes string to get a
645668 :c:type: `wchar_* ` string.
646669
670+ See also :c:member: `PyConfig.orig_argv ` and :c:member: `PyConfig.argv `
671+ members of the :ref: `Python Initialization Configuration <init-config >`.
672+
647673 .. versionchanged :: 3.4 The *updatepath* value depends on :option:`-I`.
648674
649675
650676.. c :function :: void Py_SetPythonHome (const wchar_t *home)
651677
678+ This API is kept for backward compatibility: setting
679+ :c:member: `PyConfig.home ` should be used instead, see :ref: `Python
680+ Initialization Configuration <init-config>`.
681+
652682 Set the default "home" directory, that is, the location of the standard
653683 Python libraries. See :envvar: `PYTHONHOME ` for the meaning of the
654684 argument string.
@@ -661,6 +691,8 @@ Process-wide parameters
661691 Use :c:func: `Py_DecodeLocale ` to decode a bytes string to get a
662692 :c:type: `wchar_* ` string.
663693
694+ .. deprecated :: 3.11
695+
664696
665697.. c :function :: w_char* Py_GetPythonHome ()
666698
0 commit comments