Could we use an unrepr module?
Martin Geisler
mg at aragost.com
Fri May 6 05:14:21 CDT 2011
Pierre-Yves David <pierre-yves.david at logilab.fr> writes:
> On Thu, May 05, 2011 at 05:17:30PM +0200, Martin Geisler wrote:
>> Hi guys,
>>
>> I needed a way to serialize data for the lock extension, so I wrote a
>> small module that reverses the normal repr function in Python. It is
>> like eval, but does not execute anything.
>
> Looks like you are looking for a safe pickle. You should have a look
> at cerealizer a small (600 line documentation included) that claimed
> to be as fast as cPickle on new style class. The code is 5 years old
> so it should run on 2.4 without issue.
It looks nice. Here is a link to the homepage:
http://home.gna.org/oomadness/en/cerealizer/index.html
and the code:
http://svn.gna.org/viewcvs/*checkout*/soya/trunk/cerealizer/__init__.py?content-type=text%2Fplain
--
Martin Geisler
aragost Trifork
Professional Mercurial support
http://mercurial.aragost.com/kick-start/
More information about the Mercurial-devel
mailing list