From 466306c0a1970cfb8a7063cc7a44560af43b6127 Mon Sep 17 00:00:00 2001 From: "C.A.M. Gerlach" Date: Sat, 15 Oct 2022 20:52:53 -0500 Subject: [PATCH 1/4] Link ZipFile in What's New entry discussing it --- Doc/whatsnew/3.11.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index 56a35f4e4802ba..788cb1cec946fd 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -1062,11 +1062,14 @@ 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`.) fcntl From b91d8ae45fdd7c3a9842a1202cf9b8505fbf9ebd Mon Sep 17 00:00:00 2001 From: "C.A.M. Gerlach" Date: Sat, 15 Oct 2022 20:57:13 -0500 Subject: [PATCH 2/4] Add entry for new ZipFile.mkdir method --- Doc/whatsnew/3.11.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index 788cb1cec946fd..3464bb5f143188 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -1071,6 +1071,10 @@ zipfile * 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 ` + for creating new directories inside ZIP archives. + (Contributed by Sam Ezeh in :gh:`49083`.) + fcntl ----- From d259b7966244b14c2ca4430025a43a33a1a67b79 Mon Sep 17 00:00:00 2001 From: "C.A.M. Gerlach" Date: Sat, 15 Oct 2022 21:02:37 -0500 Subject: [PATCH 3/4] Add entry for new zipfile.Path.stem/suffix/suffixes methods --- Doc/whatsnew/3.11.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index 3464bb5f143188..129789ff3352c6 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -1071,9 +1071,12 @@ zipfile * 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 ` +* Added :meth:`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 From 24b0a4266fffe39f05af00aea0e5d41c1185dcb2 Mon Sep 17 00:00:00 2001 From: "C.A.M. Gerlach" Date: Sun, 16 Oct 2022 14:29:18 -0500 Subject: [PATCH 4/4] Add missing line breaks between zipfile bullet list items --- Doc/whatsnew/3.11.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index 129789ff3352c6..0cbe32bdb649a5 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -1071,9 +1071,11 @@ zipfile * 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() ` 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`.)