Pickle to source code
Gabriel Genellina
gagenellina at softlab.com.ar
Wed Oct 26 08:36:56 EDT 2005
Benjamin Niemann ha escrito:
> Gabriel Genellina wrote:
>
> > I want to convert from pickle format to python source code. That is,
> > given an existing pickle, I want to produce a textual representation
> > which, when evaluated, yields the original object (as if I had
>
> If all objects correctly implement the __repr__ method (true for built-in
> stuff like list, dict, set...):
> Just unpickle it and call repr() on the resulting object.
Unfortunately I need a more general approach...
Gabriel Genellina
Softlab SRL
More information about the Python-list
mailing list