wasm-demo/demo/ermis-f/python_m/cur/0185

28 lines
759 B
Plaintext

From: nathan.froyd at rose-hulman.edu (Nathan Froyd)
Date: 24 Apr 1999 22:48:49 -0500
Subject: pickling and unpickling on the same file?
Message-ID: <m3n1zxnyvy.fsf@froydnj.laptop.rose-hulman.edu>
X-UID: 185
Is there any way to implement the above beast? Something like:
p = Pickler(file)
u = Unpickler(file)
file.seek(random_pos)
x = u.load()
z = [7, 8, 9]
p.dump(z)
would be perfect
--
Nathan | nathan.froyd at rose-hulman.edu | http://www.rose-hulman.edu/~froydnj/
God went through hell so we don't have to. ICQ:18861764 | AOL:myrlyn007
Avoid the gates of hell. Use Linux. Python:"x='x=%s;x%%`x`';x%`x`"
Evolution is a million line computer program falling into place by accident.