Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0e752dd

Browse files
committed
Issue #6476: Document that os.spawnle and os.spawnve are not thread-safe under Windows.
1 parent 12ebefc commit 0e752dd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Doc/library/os.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1930,7 +1930,9 @@ written in Python, such as a mail server's external command delivery program.
19301930
os.spawnvpe(os.P_WAIT, 'cp', L, os.environ)
19311931

19321932
Availability: Unix, Windows. :func:`spawnlp`, :func:`spawnlpe`, :func:`spawnvp`
1933-
and :func:`spawnvpe` are not available on Windows.
1933+
and :func:`spawnvpe` are not available on Windows. :func:`spawnle` and
1934+
:func:`spawnve` are not thread-safe on Windows; we advise you to use the
1935+
:mod:`subprocess` module instead.
19341936

19351937

19361938
.. data:: P_NOWAIT

0 commit comments

Comments
 (0)