Obj.'s writing self-regeneration script ?

Bas Michielsen michielsen at onecert.fr
Fri Jul 8 16:41:07 CEST 2005


Jerome Alet wrote:
> Hi,
> 
> Le Fri, 08 Jul 2005 15:16:21 +0200, Bas Michielsen a écrit :
> 
> 
>>Is there a good/standard way of having (composite)
>>objects write a Python script which will regenerate
>>the very same object ?
> 
> 
> I've done something like this for the ReportLab toolkit.
> 
> Last time I checked, this was still part of the project under
> the name "pycanvas". You use a pycanvas.Canvas() instance
> just like you would use a canvas.Canvas() instance, but you can decide to
> regenerate an equivalent Python source program to your original program
> when rendering.
> 
> The docstring explains how to use it. Also
> reportlab/test/test_pdfgen_pycanvas.py shows if it works or not.
> 
> NB : this is not generic code, but maybe this can help you.
> 
> bye
> 
> Jerome Alet

Thank you very much, I will have a look at it.

Bas


-- 
Bas Michielsen
ONERA, Electromagnetics and Radar Department
2, avenue Edouard Belin, 31055 TOULOUSE cedex, France
Tel. (++33)(0)5 62 25 26 77
Fax. (++33)(0)5 62 25 25 77




More information about the Python-list mailing list