[Python-ideas] Serializable method

Oleg Broytman phd at phdru.name
Fri Mar 9 18:22:40 CET 2012

On Fri, Mar 09, 2012 at 05:05:51PM +0000, Jakob Bowyer wrote:
> I think that object should provide an __serializable__ method which in-turn
> allows the user to define in it how the object is to be serialized, the
> default operation should be something along the lines of  return
> self.__dict__

   Do you mean __getstate__?

     Oleg Broytman            http://phdru.name/            phd at phdru.name
           Programmers don't die, they just GOSUB without RETURN.

More information about the Python-ideas mailing list