◐ Shell
clean mode source ↗

bpo-28231: The zipfile module now accepts path-like objects for external paths. by serhiy-storchaka · Pull Request #511 · python/cpython

@mention-bot

zhangyangyu

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.

zhangyangyu

serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request

Mar 8, 2017

serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request

Mar 16, 2017