Skip to content

bpo-34097: Polish API design#8725

Merged
vstinner merged 2 commits into
masterfrom
unknown repository
Aug 31, 2018
Merged

bpo-34097: Polish API design#8725
vstinner merged 2 commits into
masterfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Aug 10, 2018

Copy link
Copy Markdown

It has been requested to move the keyword-only argument strict_timestamps to the constructor of ZipFile, rather than have it in the write method.
This PR moves the argument according to the request.

https://bugs.python.org/issue34097

Comment thread Lib/zipfile.py Outdated
self.mode = mode
self.pwd = None
self._comment = b''
self.strict_timestamps = strict_timestamps

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to make the attribute private: rename it to _strict_timestamps.

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rename the attribute.

@bedevere-bot

Copy link
Copy Markdown

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@serhiy-storchaka: would you mind to review this change? You requested it:
https://bugs.python.org/issue34097#msg322954

@vstinner

Copy link
Copy Markdown
Member

In the lack of answer from @serhiy-storchaka, I decided to merge the change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants