bpo-30511: Add note on thread safety to shutil.make_archive() (#26933) · python/cpython@64f54b7 (original) (raw)
File tree
2 files changed
lines changed
- Misc/NEWS.d/next/Documentation
2 files changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -595,6 +595,10 @@ provided. They rely on the :mod:`zipfile` and :mod:`tarfile` modules. | ||
595 | 595 | |
596 | 596 | .. audit-event:: shutil.make_archive base_name,format,root_dir,base_dir shutil.make_archive |
597 | 597 | |
598 | + .. note:: | |
599 | + | |
600 | + This function is not thread-safe. | |
601 | + | |
598 | 602 | .. versionchanged:: 3.8 |
599 | 603 | The modern pax (POSIX.1-2001) format is now used instead of |
600 | 604 | the legacy GNU format for archives created with ``format="tar"``. |
Original file line number | Diff line number | Diff 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. |