[reportlab-users] rednerSVG drawToString

Jerome Alet reportlab-users@reportlab.com
Sat, 21 Sep 2002 19:09:11 +0200


On Sat, Sep 21, 2002 at 05:06:41PM +0200, Dirk Datzert wrote:
> 
> I had the need to render SVG in memory. I placed a
> drawToString()-Function in renderSVG:
> 
> def drawToString(d, showBoundary=rl_config.showBoundary):
>     "Returns a SVG as a string in memory, without touching the disk"
>     s = getStringIO()
>     drawToFile(d, s, showBoundary=showBoundary)
>     return s.getvalue()

nothing to do with RL but Python :

does anyone know if such a memory buffer is ever released (freed ?)
even if s.close() is never called ?

thanks in advance for any info, the Python library doc isn't
clear on this point.

bye,

Jerome Alet