diff options
author | C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> | 2022-10-19 04:33:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-19 04:33:50 (GMT) |
commit | ed827d560831b054d262818b1777f7879e8fbd3e (patch) | |
tree | 9545a7b3e322ae44c1da5de7d7a882d0f092e3ab /Doc | |
parent | 251b8ccd2a4354840ed2d3aeb9b643a999ba792f (diff) | |
download | cpython-ed827d560831b054d262818b1777f7879e8fbd3e.zip cpython-ed827d560831b054d262818b1777f7879e8fbd3e.tar.gz cpython-ed827d560831b054d262818b1777f7879e8fbd3e.tar.bz2 |
gh-95913: Edit zipfile Whatsnew section & add new APIs (#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
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/whatsnew/3.11.rst | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index a8dbe06..46c5692 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -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 ----- |