Could we use an unrepr module?
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: Digital signature
More information about the Mercurial-devel