Skip to content

bpo-28231: The zipfile module now accepts path-like objects for external paths. #511

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

serhiy-storchaka
Copy link
Member

No description provided.

@mention-bot
Copy link

@serhiy-storchaka, thanks for your PR! By analyzing the history of the files in this pull request, we identified @loewis, @birkenfeld, @ezio-melotti, @Yhg1s and @ctismer to be potential reviewers.

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`.
Copy link
Member

@zhangyangyu zhangyangyu Mar 8, 2017

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`.

Copy link
Member Author

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 serhiy-storchaka merged commit 8606e95 into python:master Mar 8, 2017
@serhiy-storchaka serhiy-storchaka deleted the bpo-28231-zipfile-pathlib-3.6.2 branch March 8, 2017 12:38
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature A feature request or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants