<p>So what's your proposal) </p>
<p>--Guido van Rossum (sent from Android phone)</p>
<div class="gmail_quote">On Mar 9, 2012 2:38 PM, "anatoly techtonik" <<a href="mailto:techtonik@gmail.com">techtonik@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Pickle is insecure, unfortunately, so a generic module to serialize<br>
and unserialize Python objects (or data containers) securely, without<br>
the need of constructor, would be awesome. However, magical methods<br>
are evil. It will be hard to find the source of error if the logic in<br>
your magic level fail.<br>
--<br>
anatoly t.<br>
<br>
<br>
<br>
On Fri, Mar 9, 2012 at 8:27 PM, Jakob Bowyer <<a href="mailto:jkbbwr@gmail.com">jkbbwr@gmail.com</a>> wrote:<br>
> Another occasion I should have read the docs :L<br>
><br>
><br>
> On Fri, Mar 9, 2012 at 5:22 PM, Oleg Broytman <<a href="mailto:phd@phdru.name">phd@phdru.name</a>> wrote:<br>
>><br>
>> On Fri, Mar 09, 2012 at 05:05:51PM +0000, Jakob Bowyer wrote:<br>
>> > I think that object should provide an __serializable__ method which<br>
>> > 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>
>>   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>
>><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>
><br>
><br>
><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>
><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>
</blockquote></div>