[Patches] [Patch #103789] Add support to zipfile for passing file-like objects
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 15 Feb 2001 05:25:56 -0800
Patch #103789 has been updated.
Project: python
Category: Modules
Status: Open
Submitted by: itamar
Assigned to : fdrake
Summary: Add support to zipfile for passing file-like objects
Follow-Ups:
Date: 2001-Feb-14 05:26
By: itamar
Comment:
Right now I detect file-like objects by doing hasattr(file, "read"). Doing
hasattr(file, "write") might be better though, since for mode="w" ZipFiles,
all you need are write() and tell() methods on the file-like object.
-------------------------------------------------------
-------------------------------------------------------
For more info, visit:
http://sourceforge.net/patch/?func=detailpatch&patch_id=103789&group_id=5470