From: David S. <dsc...@vy...> - 2001-03-28 15:33:22
|
> Don't off-hand follow the visual __iinit__.py code > related to vector: > > >import copy_reg > >copy_reg.pickle(cvisual.VectorType, lambda v: (vector, tuple(v)), vector) > > Whats happening there? This makes the vector type pickleable by providing functions to convert it to and from a tuple. You probably don't need to duplicate it for a UserVector class - as long as your UserVector is implemented as a Python class using only pickleable types (including vector) it should be fine. Dave |