@@ -20,6 +20,35 @@ Pending removal in Python 3.15
2020* :c:func: `!PyUnicode_AsEncodedUnicode `:
2121 Use :c:func: `PyCodec_Encode ` instead; Note that some codecs (for example, "base64")
2222 may return a type other than :class: `bytes `, such as :class: `str `.
23+ * Python initialization functions, deprecated in Python 3.13:
24+
25+ * :c:func: `!Py_GetPath `:
26+ Use :c:func: `PyConfig_Get("module_search_paths") <PyConfig_Get> `
27+ (:data: `sys.path `) instead.
28+ * :c:func: `!Py_GetPrefix `:
29+ Use :c:func: `PyConfig_Get("base_prefix") <PyConfig_Get> `
30+ (:data: `sys.base_prefix `) instead. Use :c:func: `PyConfig_Get("prefix")
31+ <PyConfig_Get> ` (:data: `sys.prefix `) if :ref: `virtual environments
32+ <venv-def>` need to be handled.
33+ * :c:func: `!Py_GetExecPrefix `:
34+ Use :c:func: `PyConfig_Get("base_exec_prefix") <PyConfig_Get> `
35+ (:data: `sys.base_exec_prefix `) instead. Use
36+ :c:func: `PyConfig_Get("exec_prefix") <PyConfig_Get> `
37+ (:data: `sys.exec_prefix `) if :ref: `virtual environments <venv-def >` need to
38+ be handled.
39+ * :c:func: `!Py_GetProgramFullPath `:
40+ Use :c:func: `PyConfig_Get("executable") <PyConfig_Get> `
41+ (:data: `sys.executable `) instead.
42+ * :c:func: `!Py_GetProgramName `:
43+ Use :c:func: `PyConfig_Get("executable") <PyConfig_Get> `
44+ (:data: `sys.executable `) instead.
45+ * :c:func: `!Py_GetPythonHome `:
46+ Use :c:func: `PyConfig_Get("home") <PyConfig_Get> ` or the
47+ :envvar: `PYTHONHOME ` environment variable instead.
48+
49+ The `pythoncapi-compat project
50+ <https://github.com/python/pythoncapi-compat/> `__ can be used to get
51+ :c:func: `PyConfig_Get ` on Python 3.13 and older.
2352
2453* Functions to configure Python's initialization, deprecated in Python 3.11:
2554
0 commit comments