<br><br><div class="gmail_quote">On 24 August 2010 11:46, Mark Leander <span dir="ltr"><<a href="mailto:mark.leander@topicbranch.net">mark.leander@topicbranch.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">Almar Klein <almar.klein <at> <a href="http://gmail.com" target="_blank">gmail.com</a>> writes:<br>
> A year ago or so I designed a simple file format that could do that and is also<br>
> human readable (binary data is compressed and then base64 encoded). I use it<br>
> extensively to store experiment data for my research and also for configuration<br>
> files for two open source projects that I own:<a href="http://code.google.com/p/ssdf/" target="_blank">http://code.google.com/p/ssdf/</a><br>
<br>
</div>That looks quite nice! Thank you for sharing!<br>
<br>
I see that at least in some case you use the generally unsafe eval() for parsing.<br>
For instance the following will consume CPU and memory for quite a while:<br>
<br>
>>> ssdf.loads(u'a = [0xffffffffffffffff**0xffffffffffffffff]')<br><br></blockquote><div><br>I added an issue for this, will take a look at it. Thanks!<br> Almar<br></div></div>