Re: Question about unpickling dict subclass with custom __setstate__

2009-09-11 Thread Gabriel Genellina
En Thu, 10 Sep 2009 20:09:34 -0300, Matthew Wilson m...@tplus1.com escribió: I subclassed the dict class and added a __setstate__ method because I want to add some extra steps when I unpickle these entities. This is a toy example of what I am doing: class Entity(dict): def

Question about unpickling dict subclass with custom __setstate__

2009-09-10 Thread Matthew Wilson
I subclassed the dict class and added a __setstate__ method because I want to add some extra steps when I unpickle these entities. This is a toy example of what I am doing: class Entity(dict): def __setstate__(self, d): log.debug(blah...) Based on my experiments, the