gzip bug?

catlee at my-deja.com catlee at my-deja.com
Mon Aug 9 17:55:46 EDT 1999


gzip file objects don't seem to close themselves automatically.  When I
do this:
cPickle.dump(object,gzip.open('file','w'))

Only a couple hundred bytes are written.  However everything works find
when I do this:
f=gzip.open('file','w')
cPickle.dump(object,f)
f.close()

Cheers,
Chris


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.




More information about the Python-list mailing list