__getattr__ and pickle

Sean Mc Grath sean at digitome.com
Sun Jul 2 07:53:00 EDT 2000


The was a typo that could lead to confusion + a genuinely unforseen
and unintentional pun in the original post. I have fixed the typo but
left in the pun here:

-------------------------
I have a reproduceable GPF on NT when pickking objects of a class
that has a __getattr__ implementation. Take out the __getattr__ and
the pickle works fine.

Are there ways to implement __getattr__ and yet preserve the ability
to pickle?

regards,





More information about the Python-list mailing list