Could we use an unrepr module?

Pierre-Yves David pierre-yves.david at logilab.fr
Fri May 6 03:14:49 CDT 2011


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.

-- 
Pierre-Yves
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20110506/8a6bb5e9/attachment.pgp>


More information about the Mercurial-devel mailing list