> > http://docs.python.org/lib/module-pickle.html
> > ... concise Python ways of pickling and unpickling
> > the (0xFF ** N) possible ways of
> > packing N strings of byte lengths of 0..xFE together ...

Aye, looks like an exercise left open for the student to complete:

>>> pickle.dumps("")
"S''\np0\n."
>>>
>>> pickle.dumps("abc")
"S'abc'\np0\n."
>>>
>>> pickle.loads(pickle.dumps("abc"))
'abc'
>>>
>>> pickle.dumps(ctypes.c_ubyte(0))
...
TypeError: abstract class
>>>

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to