ctypes argument by reference

2011-12-28 Thread gaetan
Hi I try to write a python backend for pamcan-g2, for that I should write a callback for *trans_cb_conv In python I've write : trans_cb_event = CFUNCTYPE(ctypes.c_char_p,ctypes.c_void_p,POINTER(ctypes.c_int) ... def fpm_trans_conv(event,pkg,response): foo... response=1 and for call the ca

Pickling an extension type subclasses problems

2010-02-05 Thread Gaetan de Menten
Hi all, I am trying to write an (optional!) C extension for SQLAlchemy, and I am struggling to make an extension type picklable *and* using the same format as the pure Python version (so that computers with the C extension can unpickle pickles from computers without it and vice-versa). Also the ex