Message80493
Using Python 2.6.1, I'm unable to pickle a simple object with an array
of wide characters.
import ctypes, pickle
class MyStruct(ctypes.Structure):
_fields_ = [('name', ctypes.c_wchar*2)]
s = MyStruct('DC')
pickle.dumps(s) # raises ValueError.
Replace ctypes.c_wchar with ctypes.c_char and the pickling works fine. |
|
Date |
User |
Action |
Args |
2009-01-25 02:52:28 | jaraco | set | recipients:
+ jaraco, theller |
2009-01-25 02:52:28 | jaraco | set | messageid: <1232851948.05.0.0363189700044.issue5049@psf.upfronthosting.co.za> |
2009-01-25 02:52:25 | jaraco | link | issue5049 messages |
2009-01-25 02:52:24 | jaraco | create | |
|