From 38dae178a29fe9bea8421ac445e8fe4631e20858 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sun, 2 Jul 2023 18:11:45 +0200 Subject: [PATCH 1/4] gh-106320: Remove private _PyInterpreterState functions (#106335) Remove private _PyThreadState and _PyInterpreterState C API functions: move them to the internal C API (pycore_pystate.h and pycore_interp.h). Don't export most of these functions anymore, but still export functions used by tests. Remove _PyThreadState_Prealloc() and _PyThreadState_Init() from the C API, but keep it in the stable API. From cb914076e80b428376d12a2123f23f8502fd9721 Mon Sep 17 00:00:00 2001 From: Adorilson Bezerra Date: Sat, 30 Dec 2023 16:00:03 +0000 Subject: [PATCH 2/4] Doc: minor change --- Doc/library/array.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Doc/library/array.rst b/Doc/library/array.rst index d34a1888342e27e..9d65d844a136d20 100644 --- a/Doc/library/array.rst +++ b/Doc/library/array.rst @@ -279,3 +279,4 @@ Examples:: `NumPy `_ The NumPy package defines another array type. + From 5b16e9ec52ef165febf55a814d4b7970cebf1470 Mon Sep 17 00:00:00 2001 From: Adorilson Bezerra Date: Mon, 25 Mar 2024 19:23:48 +0000 Subject: [PATCH 3/4] Revert "Doc: minor change" This reverts commit ebfa0937c2caf0110ab1540f14956d56fe925092. --- Doc/library/array.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/Doc/library/array.rst b/Doc/library/array.rst index 9d65d844a136d20..d34a1888342e27e 100644 --- a/Doc/library/array.rst +++ b/Doc/library/array.rst @@ -279,4 +279,3 @@ Examples:: `NumPy `_ The NumPy package defines another array type. - From 36d122e4ea66c59daeebf38a3c11517b21908c05 Mon Sep 17 00:00:00 2001 From: Adorilson Bezerra Date: Wed, 26 Jun 2024 19:58:12 +0100 Subject: [PATCH 4/4] [Doc] Fix os.spawn* functions Replace argument names *path* for *file*, the real names from them --- Doc/library/os.rst | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 360d71e70960c77..7593e39876ecc3e 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -4794,16 +4794,16 @@ written in Python, such as a mail server's external command delivery program. .. versionadded:: 3.7 -.. function:: spawnl(mode, path, ...) - spawnle(mode, path, ..., env) +.. function:: spawnl(mode, file, ...) + spawnle(mode, file, ..., env) spawnlp(mode, file, ...) spawnlpe(mode, file, ..., env) - spawnv(mode, path, args) - spawnve(mode, path, args, env) + spawnv(mode, file, args) + spawnve(mode, file, args, env) spawnvp(mode, file, args) spawnvpe(mode, file, args, env) - Execute the program *path* in a new process. + Execute the program *file* in a new process. (Note that the :mod:`subprocess` module provides more powerful facilities for spawning new processes and retrieving their results; using that module is @@ -4835,7 +4835,7 @@ written in Python, such as a mail server's external command delivery program. discussed in the next paragraph), the new environment is used as the source of the :envvar:`PATH` variable. The other variants, :func:`spawnl`, :func:`spawnle`, :func:`spawnv`, and :func:`spawnve`, will not use the - :envvar:`PATH` variable to locate the executable; *path* must contain an + :envvar:`PATH` variable to locate the executable; *file* must contain an appropriate absolute or relative path. For :func:`spawnle`, :func:`spawnlpe`, :func:`spawnve`, and :func:`spawnvpe` @@ -4856,7 +4856,7 @@ written in Python, such as a mail server's external command delivery program. L = ['cp', 'index.html', '/dev/null'] os.spawnvpe(os.P_WAIT, 'cp', L, os.environ) - .. audit-event:: os.spawn mode,path,args,env os.spawnl + .. audit-event:: os.spawn mode,file,args,env os.spawnl .. availability:: Unix, Windows, not WASI, not iOS.