Skip to content

Commit 6255261

Browse files
CAM-Gerlachmiss-islington
authored andcommitted
pythongh-95913: Edit zipfile Whatsnew section & add new APIs (pythonGH-98314)
* 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 (cherry picked from commit ed827d5) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
1 parent 39eaca8 commit 6255261

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

‎Doc/whatsnew/3.11.rst‎

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,13 +1108,25 @@ warnings
11081108
providing a more concise way to locally ignore warnings or convert them to errors.
11091109
(Contributed by Zac Hatfield-Dodds in :issue:`47074`.)
11101110

1111+
1112+
.. _whatsnew311-zipfile:
1113+
11111114
zipfile
11121115
-------
11131116

1114-
* Added support for specifying member name encoding for reading
1115-
metadata in the zipfile's directory and file headers.
1117+
* Added support for specifying member name encoding for reading metadata
1118+
in a :class:`~zipfile.ZipFile`'s directory and file headers.
11161119
(Contributed by Stephen J. Turnbull and Serhiy Storchaka in :issue:`28080`.)
11171120

1121+
* Added :meth:`ZipFile.mkdir() <zipfile.ZipFile.mkdir>`
1122+
for creating new directories inside ZIP archives.
1123+
(Contributed by Sam Ezeh in :gh:`49083`.)
1124+
1125+
* Added :attr:`~zipfile.Path.stem`, :attr:`~zipfile.Path.suffix`
1126+
and :attr:`~zipfile.Path.suffixes` to :class:`zipfile.Path`.
1127+
(Contributed by Miguel Brito in :gh:`88261`.)
1128+
1129+
11181130
fcntl
11191131
-----
11201132

0 commit comments

Comments
 (0)