cPickle problems

Gabriel Genellina gagsl-py at yahoo.com.ar
Thu Nov 16 20:57:50 EST 2006


At Thursday 16/11/2006 21:48, Jeff  Poole wrote:

>   File "/usr/lib/python2.4/pickle.py", line 313, in save
>     rv = reduce(self.proto)
>   File "/usr/lib/python2.4/copy_reg.py", line 83, in _reduce_ex
>     dict = getstate()
>TypeError: 'str' object is not callable

Someway, self.__getstate__ is a string, not a method...
Since it fails inside a python module, you could print some debug 
information to see what happens, like repr(self), type(self), repr(getstate)...



-- 
Gabriel Genellina
Softlab SRL 

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar



More information about the Python-list mailing list