"Jeff Poole" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> So when something tries to retrieve .__getstate__, it returns an empty
> string. If I tell it to raise an AttributeException instead, then I
> get this message:
>
> TypeError: a class that defines __slots__ without definin
Jeff Poole wrote:
> Good idea. Well, I did that, and I found out that the object causing
> problems is a ParseResults object (a class from PyParsing) and that the
> __getstate__ member is in fact an empty string (''). I'm not sure
> where this leaves me... The PyParsing code clearly never crea
Good idea. Well, I did that, and I found out that the object causing
problems is a ParseResults object (a class from PyParsing) and that the
__getstate__ member is in fact an empty string (''). I'm not sure
where this leaves me... The PyParsing code clearly never creates such
a member and my cod
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 st
To clutter this up with yet another message, this is what happens if I
use pickle instead of cPickle. Same error, but it has more of a stack
trace so someone more advanced than myself might be able to pick out
what is going amiss.
Traceback (most recent call last):
File "./generateTools.py", li
Oh, and I suppose I should provide some version information:
$ python
Python 2.4.3 (#1, May 18 2006, 07:40:45)
[GCC 3.3.3 (cygwin special)] on cygwin
Jeff Poole wrote:
> This is going to be a pretty vague message because it involves a large
> block of code I'd rather avoid posting. Basically,