]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-95913: Edit zipfile Whatsnew section & add new APIs (#98314)
authorC.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Wed, 19 Oct 2022 04:33:50 +0000 (23:33 -0500)
committerGitHub <noreply@github.com>
Wed, 19 Oct 2022 04:33:50 +0000 (06:33 +0200)
* Link ZipFile in What's New entry discussing it

* Add entry for new ZipFile.mkdir method

* Add entry for new zipfile.Path.stem/suffix/suffixes methods

* Add missing line breaks between zipfile bullet list items

Doc/whatsnew/3.11.rst

index a8dbe06b00b653bd49f0cc63d158ba8ff0a7923b..46c5692c8449d5372515076b8f48569e4d71da54 100644 (file)
@@ -1128,13 +1128,25 @@ warnings
   providing a more concise way to locally ignore warnings or convert them to errors.
   (Contributed by Zac Hatfield-Dodds in :issue:`47074`.)
 
+
+.. _whatsnew311-zipfile:
+
 zipfile
 -------
 
-* Added support for specifying member name encoding for reading
-  metadata in the zipfile's directory and file headers.
+* Added support for specifying member name encoding for reading metadata
+  in a :class:`~zipfile.ZipFile`'s directory and file headers.
   (Contributed by Stephen J. Turnbull and Serhiy Storchaka in :issue:`28080`.)
 
+* Added :meth:`ZipFile.mkdir() <zipfile.ZipFile.mkdir>`
+  for creating new directories inside ZIP archives.
+  (Contributed by Sam Ezeh in :gh:`49083`.)
+
+* Added :attr:`~zipfile.Path.stem`, :attr:`~zipfile.Path.suffix`
+  and :attr:`~zipfile.Path.suffixes` to :class:`zipfile.Path`.
+  (Contributed by Miguel Brito in :gh:`88261`.)
+
+
 fcntl
 -----