Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd17449f

Browse files
bpo-30511: Add note on thread safety to shutil.make_archive() (GH-26933) (GH-27274)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>(cherry picked from commit64f54b7)Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
1 parent68b4690 commitd17449f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

‎Doc/library/shutil.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,10 @@ provided. They rely on the :mod:`zipfile` and :mod:`tarfile` modules.
595595

596596
..audit-event::shutil.make_archive base_name,format,root_dir,base_dir shutil.make_archive
597597

598+
..note::
599+
600+
This function is not thread-safe.
601+
598602
..versionchanged::3.8
599603
The modern pax (POSIX.1-2001) format is now used instead of
600604
the legacy GNU format for archives created with ``format="tar"``.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Clarify that:func:`shutil.make_archive` is not thread-safe due to
2+
reliance on changing the current working directory.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp