Commit c030a613 authored by Kevin Modzelewski's avatar Kevin Modzelewski

With a "marshal" stub, we can do some basic pickling

parent cb6c1514
# Very simple stub for the marshal module.
# - pickle imports marshal
def loads(*args, **kw):
raise NotImplementedError()
import pickle
l = [[], (123,)]
l.append(l)
s = pickle.dumps(l)
print repr(s)
l2 = pickle.loads(s)
l3 = l2.pop()
print l2, l3, l2 is l3
# This doesn't work yet; we need str.decode("string-escape")
# print pickle.loads(pickle.dumps("hello world"))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment