summaryrefslogtreecommitdiffstats
path: root/Doc/library/zipfile.rst
Commit message (Collapse)AuthorAgeFilesLines
* [3.13] gh-119588: Update docs to reflect decision to include the change with ↵Miss Islington (bot)2024-06-041-2/+2
| | | | | | | | Python 3.13 and not 3.12. (GH-120043) (#120046) gh-119588: Update docs to reflect decision to include the change with Python 3.13 and not 3.12. (GH-120043) (cherry picked from commit 4dcd91ceafce91ec37bb1a9d544e41fc65578994) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* [3.13] gh-119588: Implement zipfile.Path.is_symlink (zipp 3.19.0). ↵Miss Islington (bot)2024-06-041-0/+9
| | | | | | | | (GH-119591) (#119985) gh-119588: Implement zipfile.Path.is_symlink (zipp 3.19.0). (GH-119591) (cherry picked from commit 42a34ddb0b63e638905b01e17a7254623a0de427) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* [3.13] docs: module page titles should not start with a link to themselves ↵Miss Islington (bot)2024-05-081-2/+2
| | | | | | | | (GH-117099) (#118790) docs: module page titles should not start with a link to themselves (GH-117099) (cherry picked from commit bcb435ee8ff41b5ec5d879ee0b6651f146a66151) Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
* gh-115961: Add name and mode attributes for compressed file-like objects ↵Serhiy Storchaka2024-04-211-0/+10
| | | | | | | | | | (GH-116036) * Add name and mode attributes for compressed and archived file-like objects in modules bz2, lzma, tarfile and zipfile. * Change the value of the mode attribute of GzipFile from integer (1 or 2) to string ('rb' or 'wb'). * Change the value of the mode attribute of ZipExtFile from 'r' to 'rb'.
* Docs: add link roles with Sphinx extlinks (#117850)Hugo van Kemenade2024-04-151-1/+1
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Docs: align usage of versionadded/versionchanged with recommended practice ↵Erlend E. Aasland2024-01-221-12/+12
| | | | | | (#114409) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* gh-113971: Make `zipfile.ZipInfo._compresslevel` public as `.compress_level` ↵Gregory P. Smith2024-01-121-0/+5
| | | | | | | | | | | (#113969) Make zipfile.ZipInfo.compress_level public. A property is used to retain the behavior of the ._compresslevel. People constructing zipfile.ZipInfo instances to pass into existing APIs to control per-file compression levels already treat this as public, there was never a reason for it not to be. I used the more modern name compress_level instead of compresslevel as the keyword argument on other ZipFile APIs is called to be consistent with compress_type and a general long term preference of not runningwordstogether without a separator in names.
* Docs: Avoid the deprecated ``.. cmdoption::`` directive (#110292)Adam Turner2023-10-031-9/+9
|
* docs: clarify Path.suffix (GH-106650)Ned Batchelder2023-07-131-2/+3
|
* GH-103484: Fix redirected permanently URLs (#104001)Rafael Fontenelle2023-05-021-1/+1
| | | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Oleg Iarygin <dralife@yandex.ru>
* GH-103484: Fix broken links reported by linkcheck (#103608)Rafael Fontenelle2023-04-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Doc: Fix broken links reported by linkcheck * Apply suggestions from code review - Remove extra diff line in faq/library.rst (merwok) - Use HTTPS to link Unicode 15.0.0 to solve a redirect (hugovk) - Use wayback machine link for openssl 1.1.0 instead of linking 1.1.1, "as this text mentions a feature from 1.1.0" (hugovk) Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> * Doc: Make mark-up code as literal * Doc: Alphabetize items in linkcheck_ignore Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> * Doc: Improve comment in sphinx conf Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> --------- Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-101100: Fix sphinx warnings in `zipapp` and `zipfile` modules (#102526)Nikita Sobolev2023-03-081-1/+1
|
* GH-99818: improve the documentation for zipfile.Path and Traversable (GH-101589)Filipe Laíns2023-02-201-2/+3
| | | Automerge-Triggered-By: GH:FFY00
* gh-101144: Allow open and read_text encoding to be positional. (#101145)Gregory P. Smith2023-01-201-0/+12
| | | | | The zipfile.Path open() and read_text() encoding parameter can be supplied as a positional argument without causing a TypeError again. 3.10.0b1 included a regression that made it keyword only. Documentation update included as users writing code to be compatible with a wide range of versions will need to consider this for some time.
* Document that zipfile's pwd parameter is a `bytes` object (#100209)JustAnotherArchivist2022-12-161-7/+8
|
* gh-99087: Add missing newline for prompts in docs (GH-98993)Stanley2022-12-091-0/+1
| | | Add newline for prompts so copying to REPL does not cause errors.
* gh-93019: Fix markup in zipfile.rst (#93025)Shantanu2022-05-211-1/+1
| | | Fixes #93019
* bpo-46586: Fix more erroneous doc links to builtins (#31429)Meer Suri2022-05-021-1/+1
| | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Éric <merwok@netwok.org>
* bpo-4833: Add ZipFile.mkdir (GH-32160)Sam Ezeh2022-04-051-0/+11
|
* bpo-28080: Add support for the fallback encoding in ZIP files (GH-32007)Serhiy Storchaka2022-03-221-1/+40
| | | | | | * Add the metadata_encoding parameter in the zipfile.ZipFile constructor. * Add the --metadata-encoding option in the zipfile CLI. Co-authored-by: Stephen J. Turnbull <stephen@xemacs.org>
* bpo-39498 Start linking the security warnings in the stdlib modules (GH-18272)Anthony Shaw2021-08-091-0/+2
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* [doc] bpo-43066: zipfile - add note on leading slash in the filename arg ↵andrei kulakov2021-08-041-1/+5
| | | | | (GH-26899) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-44638: Add a reference to the zipp project and hint as to how to use it. ↵Jason R. Coombs2021-07-161-0/+4
| | | | | (GH-27188) Automerge-Triggered-By: GH:jaraco
* bpo-44095: Add suffix, stem and suffixes to zipfile.Path (GH-26129)Miguel Brito2021-05-141-0/+21
|
* bpo-42090: zipfile.Path.joinpath now accepts multiple arguments (GH-22976)Jason R. Coombs2020-12-161-1/+14
| | | Automerge-Triggered-By: GH:jaraco
* bpo-39667: Sync zipp 3.0 (GH-18540)Jason R. Coombs2020-02-291-4/+14
| | | | | | | | | | | | | | * bpo-39667: Improve pathlib.Path compatibility on zipfile.Path and correct performance degradation as found in zipp 3.0 * 📜🤖 Added by blurb_it. * Update docs for new zipfile.Path.open * Rely on dict, faster than OrderedDict. * Syntax edits on docs Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* bpo-38526: Fix zipfile.Path method name to be the correct one (#17317)Claudiu Popa2019-11-211-1/+1
|
* bpo-36260: Add pitfalls to zipfile module documentation (#13378)JunWei Song2019-09-111-0/+40
| | | | | | | | | | | | | | | | * bpo-36260: Add pitfalls to zipfile module documentation We saw vulnerability warning description (including zip bomb) in Doc/library/xml.rst file. This gave us the idea of documentation improvement. So, we moved a little bit forward :P And the doc patch can be found (pr). * fix trailing whitespace * 📜🤖 Added by blurb_it. * Reformat text for consistency.
* bpo-36832: add zipfile.Path (#13153)Jason R. Coombs2019-05-081-0/+67
| | | | | | | | | | | | | | | | | | | | | | | | * bpo-36832: add zipfile.Path * bpo-36832: add documentation for zipfile.Path * 📜🤖 Added by blurb_it. * Remove module reference from blurb. * Sort the imports * Update docstrings and docs per recommendations. * Rely on test.support.temp_dir * Signal that 'root' is the parameter. * Correct spelling of 'mod' * Convert docstring to comment for brevity. * Fix more errors in the docs
* bpo-35506: Remove redundant and incorrect links from keywords. (GH-11174)Serhiy Storchaka2018-12-191-1/+1
|
* bpo-32035: Fix words about strings and bytes in zipfile documentation. ↵Serhiy Storchaka2018-11-251-14/+10
| | | | (GH-10592)
* Fix typo in zipfile documentation. (GH-10151)nsrip2018-10-271-1/+1
|
* bpo-34097: Polish API design (GH-8725)Marcel Plch2018-08-311-10/+11
| | | Move strict_timestamps to constructor.
* bpo-34097: Add support for zipping files older than 1980-01-01 (GH-8270)Marcel Plch2018-08-021-2/+20
| | | | | ZipFile can zip files older than 1980-01-01 and newer than 2107-12-31 using a new strict_timestamps parameter at the cost of setting the timestamp to the limit.
* bpo-30693: zip+tarfile: sort directory listing (#2263)Bernhard M. Wiedemann2018-01-311-1/+4
| | | | | | tarfile and zipfile now sort directory listing to generate tar and zip archives in a more reproducible way. See also https://reproducible-builds.org/docs/stable-inputs/ on that topic.
* bpo-22908: Add seek and tell functionality to ZipExtFile (GH-4966)John Jolly2018-01-301-3/+3
| | | | | This allows for nested zip files, tar files within zip files, zip files within tar files, etc. Contributed by: John Jolly
* bpo-21417: Add compresslevel= to the zipfile module (GH-5385)Bo Bayles2018-01-301-12/+32
| | | | | | This allows the compression level to be specified when writing zipfiles (for the entire file *and* overridden on a per-file basis). Contributed by Bo Bayles
* bpo-29770: remove outdated PYO related info (GH-590)Xiang Zhang2017-03-111-3/+3
|
* bpo-28231: The zipfile module now accepts path-like objects for external ↵Serhiy Storchaka2017-03-081-2/+22
| | | | paths. (#511)
* Issue #29013: Merge from 3.6Berker Peksag2017-01-021-1/+1
|\
| * Issue #29013: Merge from 3.5Berker Peksag2017-01-021-1/+1
| |\
| | * Issue #29013: Fix allowZip64 documentationBerker Peksag2017-01-021-1/+1
| | | | | | | | | | | | | | | Zip files can be larger than 4 GiB if allowZip64 is true (default since Python 3.4)
* | | Issue #28513: Documented command-line interface of zipfile.Serhiy Storchaka2016-11-021-0/+60
|\ \ \ | |/ /
| * | Issue #28513: Documented command-line interface of zipfile.Serhiy Storchaka2016-11-021-0/+56
| |\ \ |/ / / | | _
| * Issue #28513: Documented command-line interface of zipfile.Serhiy Storchaka2016-11-021-0/+57
| |
* | Issue #19795: Improved more markups of True/False.Serhiy Storchaka2016-10-191-1/+1
|\ \ | |/
* | Issue #28103: Merge from 3.5Berker Peksag2016-09-131-2/+2
|\ \ | |/
| * Issue #28103: Use ``'...'`` style in zipfile documentationBerker Peksag2016-09-131-2/+2
| | | | | | | | Patch by Stephen J. Turnbull.
* | Issue #24693: Changed some RuntimeError's in the zipfile module to moreSerhiy Storchaka2016-09-101-15/+43
| | | | | | | | appropriate types. Improved some error messages and debugging output.
* | Issue #27381: Merge from 3.5Berker Peksag2016-06-241-1/+1
|\ \ | |/