bpo-28231: The zipfile module now accepts path-like objects for external paths. by serhiy-storchaka · Pull Request #511 · python/cpython
| Open a ZIP file, where *file* can be either a path to a file (a string) or a | ||
| file-like object. The *mode* parameter should be ``'r'`` to read an existing | ||
| Open a ZIP file, where *file* can be a path to a file (a string), a | ||
| file-like object or a :term:`path-like object`. |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
file-like object is a term. So we can use :term:`file-like object`.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree. But this is separate issue. There are a lot of mentions of file and file-like objects in the documentation.
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters