On Mon, 2002-03-18 at 15:43, Tracy S. Ruggles wrote:
> This was it.  The object I was using was a wrapper around another 
> one that I was using a special __getattr__ to access the methods of 
> the contained object.  Pickle didn't like the __getattr__ methods 
> because it returned None if the attribute didn't exist.  Pickle was 
> trying to access a hidden attribute but was getting None instead.
> 
> I will be switching the object to use an interface like x.get(value, 
> default) instead...

I believe there's a way for an object to tell Pickle what information in
an object needs to be recorded, so you could also potentially do that to
resolve any problems.

  Ian



_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to