Pickle to Source - Gabriel Genellina?

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Sat Apr 5 01:15:10 EDT 2008


En Fri, 04 Apr 2008 22:47:47 -0300, $P!D3R DelSol <sunsp1der at yahoo.com>  
escribió:

> I found this 3 year old message asking about doing the same exact thing  
> I am trying to do. This is one wheel I REALLY don't want to re-invent.   
> Can anyone point me to code that does this?
>
>> 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
>> unpickled the pickle).

See the answer from J P Calderone on that thread about aot in Twisted,  
that's the only thing I know of.
I finally used an XML representation, somewhat legible by humans.

-- 
Gabriel Genellina




More information about the Python-list mailing list