Re: how to close a gzip.GzipFile?
- From: "Sidharth" <sidharth.kuruvila@xxxxxxxxx>
- Date: 1 Apr 2005 12:36:45 -0800
GzipFile has a parameter 'fileobj' which you could use.
GzipFile( [filename[, mode[, compresslevel[, fileobj]]]])
For iteratng over the file
how about :
line = oldfileobj.readline()
while line !="":
oldmd5.update(line)
line = oldfileobj.readline()
.
- References:
- Re: how to close a gzip.GzipFile?
- From: Justin Guerin
- Re: how to close a gzip.GzipFile?
- Prev by Date: Re: Pseudocode in the wikipedia
- Next by Date: Attributes and built-in types
- Previous by thread: Re: how to close a gzip.GzipFile?
- Next by thread: Creating Modules/Namespaces from C/C++ for better class/function encapsulation/cleanup
- Index(es):