summaryrefslogtreecommitdiffstats
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-04-18 13:20:38 (GMT)
committerGitHub <noreply@github.com>2024-04-18 13:20:38 (GMT)
commit340a02b590681d4753eef0ff63037d0ecb512271 (patch)
tree09300e1018a937cdbe5f4b7be2ccd3dc25402044 /Python/sysmodule.c
parent0a0756c5edd8c32783a39ef00c47fe4a54deecbc (diff)
downloadcpython-340a02b590681d4753eef0ff63037d0ecb512271.zip
cpython-340a02b590681d4753eef0ff63037d0ecb512271.tar.gz
cpython-340a02b590681d4753eef0ff63037d0ecb512271.tar.bz2
gh-117987: Restore several functions removed in Python 3.13 alpha 1 (GH-117993)
Restore these functions removed in Python 3.13 alpha 1: * Py_SetPythonHome() * Py_SetProgramName() * PySys_SetArgvEx() * PySys_SetArgv()
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r--Python/sysmodule.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 7b4a643..05ee405 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -3872,8 +3872,7 @@ make_sys_argv(int argc, wchar_t * const * argv)
return list;
}
-// Removed in Python 3.13 API, but kept for the stable ABI
-PyAPI_FUNC(void)
+void
PySys_SetArgvEx(int argc, wchar_t **argv, int updatepath)
{
wchar_t* empty_argv[1] = {L""};
@@ -3917,8 +3916,7 @@ PySys_SetArgvEx(int argc, wchar_t **argv, int updatepath)
}
}
-// Removed in Python 3.13 API, but kept for the stable ABI
-PyAPI_FUNC(void)
+void
PySys_SetArgv(int argc, wchar_t **argv)
{
_Py_COMP_DIAG_PUSH