Another occasion I should have read the docs :L<br><br><div class="gmail_quote">On Fri, Mar 9, 2012 at 5:22 PM, Oleg Broytman <span dir="ltr"><<a href="mailto:phd@phdru.name">phd@phdru.name</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Fri, Mar 09, 2012 at 05:05:51PM +0000, Jakob Bowyer wrote:<br>
> I think that object should provide an __serializable__ method which in-turn<br>
> allows the user to define in it how the object is to be serialized, the<br>
> default operation should be something along the lines of  return<br>
> self.__dict__<br>
<br>
</div>   Do you mean __getstate__?<br>
<a href="http://docs.python.org/library/pickle.html#the-pickle-protocol" target="_blank">http://docs.python.org/library/pickle.html#the-pickle-protocol</a><br>
<span class="HOEnZb"><font color="#888888"><br>
Oleg.<br>
--<br>
     Oleg Broytman            <a href="http://phdru.name/" target="_blank">http://phdru.name/</a>            <a href="mailto:phd@phdru.name">phd@phdru.name</a><br>
           Programmers don't die, they just GOSUB without RETURN.<br>
_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-ideas" target="_blank">http://mail.python.org/mailman/listinfo/python-ideas</a><br>
</font></span></blockquote></div><br>