gh-95913: Edit zipfile Whatsnew section & add new APIs (GH-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 ed827d5608)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
This commit is contained in:
Miss Islington (bot) 2022-10-18 21:40:47 -07:00 committed by Pablo Galindo
parent b0e3eaae58
commit 425bec3002
No known key found for this signature in database
GPG key ID: FFE87404168BD847

View file

@ -1110,13 +1110,25 @@ warnings
providing a more concise way to locally ignore warnings or convert them to errors. providing a more concise way to locally ignore warnings or convert them to errors.
(Contributed by Zac Hatfield-Dodds in :issue:`47074`.) (Contributed by Zac Hatfield-Dodds in :issue:`47074`.)
.. _whatsnew311-zipfile:
zipfile zipfile
------- -------
* Added support for specifying member name encoding for reading * Added support for specifying member name encoding for reading metadata
metadata in the zipfile's directory and file headers. in a :class:`~zipfile.ZipFile`'s directory and file headers.
(Contributed by Stephen J. Turnbull and Serhiy Storchaka in :issue:`28080`.) (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 fcntl
----- -----