We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
GitHub fields:
assignee = None closed_at = <Date 2002-12-12.12:25:09.000> created_at = <Date 2002-12-10.20:31:25.000> labels = ['library'] title = 'small ZipFile.writestr() enhancement' updated_at = <Date 2002-12-12.12:25:09.000> user = 'https://bugs.python.org/jvr'
bugs.python.org fields:
activity = <Date 2002-12-12.12:25:09.000> actor = 'jvr' assignee = 'jvr' closed = True closed_date = None closer = None components = ['Library (Lib)'] creation = <Date 2002-12-10.20:31:25.000> creator = 'jvr' dependencies = [] files = ['4788'] hgrepos = [] issue_num = 651621 keywords = ['patch'] message_count = 3.0 messages = ['41945', '41946', '41947'] nosy_count = 2.0 nosy_names = ['loewis', 'jvr'] pr_nums = [] priority = 'normal' resolution = 'accepted' stage = None status = 'closed' superseder = None type = None url = 'https://bugs.python.org/issue651621' versions = ['Python 2.3']
The text was updated successfully, but these errors were encountered:
This patch allows ZipFile.writestr() to be called with an archive file name instead of a ZipInfo instance:
z = ZipFile("myarchive.zip", "w") z.writestr("foo/baz/file.ext", data) z.close()
I find the current writestr() method very inconvenient for simple (but common) things.
If called with a file name instead of a ZipInfo instance, the date_time is set to now, which makes most sense for anonymous data.
The patch also patches Doc/Lib/libzipfile.tex.
Just
Sorry, something went wrong.
Logged In: YES user_id=21627
Looks fine, please apply.
Logged In: YES user_id=92689
Thanks Martin, for the speedy review!
Checked in as Doc/lib/libzipfile.tex revision 1.15 Lib/zipfile.py revision 1.27
No branches or pull requests
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: