[Python-bugs-list] [ python-Bugs-461637 ] marshal module won't use gzip module
noreply@sourceforge.net
noreply@sourceforge.net
Fri, 14 Sep 2001 12:21:54 -0700
Bugs item #461637, was opened at 2001-09-14 12:21
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=461637&group_id=5470
Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: marshal module won't use gzip module
Initial Comment:
marshal.dump/load complain that the file object returned by gzip.open is not a file.
f = gzip.open(filename, 'wb')
marshal.dump(value, f)
f.close()
fails, but it is possible do the following which seems to indicate that gzip files should be usable directly by marshal:
f = gzip.open(filename, 'wb')
f.write(marshal.dumps(value))
f.close()
Python 2.1.1 (#20, Jul 20 2001, 01:19:29) [MSC 32 bit (Intel)] on win32
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=461637&group_id=5470