Skip to content

Commit 8f997b5

Browse files
committed
Clarify the change in behavior with a couple of workaround options.
1 parent 3fa1522 commit 8f997b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Doc/library/zipfile.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ Path objects are traversable using the ``/`` operator.
500500
``pwd`` is the ``pwd`` parameter to
501501
:meth:`ZipFile.open`.
502502

503-
.. versionchanged:: 3.9
503+
.. versionchanged:: 3.8.3
504504
Added support for text and binary modes for open. Default
505505
mode is now text.
506506

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Improve pathlib.Path compatibility on zipfile.Path and correct performance degradation as found in zipp 3.0.
1+
Improve pathlib.Path compatibility on zipfile.Path and correct performance degradation as found in zipp 3.0. This backward-incompatible change alters the default behavior for ``zipfile.Path.open`` to match the open behavior on ``pathlib.Path``. For compatibility across Python 3.8.0-3.8.2 and later versions, consider using ``zipp.Path`` on Python 3.8.2 and earlier. For a quick compatibility workaround, ``zipfile.Path.root.open`` provides the same interface as ``zipfile.Path.open`` on Python 3.8.2.

0 commit comments

Comments
 (0)