-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-123424: add ZipInfo._for_archive
to set suitable default properties
#123429
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good. I have some thoughts about alternative approaches. Interested to hear what you think.
Is there anything else that needs to be changed/discussion in this PR? I had another PR #124435 (which has been completed) that conflicted with these changes. After merge, I can continue handle my PR :) |
I don't have time for this one sorry. I didn't implement the suggestion with composition due to other issues that seemed more pressing (and I don't plan to come back here before I'm done with providing HACL* HMAC, at least). |
f578f66
to
44e7b75
Compare
ZipInfo.for_name
to construct a ZipInfo
for a file in an archiveZipInfo._for_archive
to set suitable default properties
Thank you very much for taking over this @jaraco. Sorry for not honoring my initial commitment but I couldn't find the time/motivation to work on this one :( |
No need to apologize. Thanks for the original work and being proactive about your availability. |
…roperties (python#123429) --------- Co-authored-by: Jason R. Coombs <[email protected]>
python/cpython#123424: add `ZipInfo._for_archive` to set suitable default properties --------- Co-authored-by: Jason R. Coombs <[email protected]>
python/cpython#123424: add `ZipInfo._for_archive` to set suitable default properties --------- Co-authored-by: Jason R. Coombs <[email protected]>
Closes #123424 .
📚 Documentation preview 📚: https://cpython-previews--123429.org.readthedocs.build/