Using string as file
Arnaud Delobelle
arnodel at googlemail.com
Mon Mar 5 15:23:00 EST 2007
On Mar 5, 8:13 pm, Florian Lindner <Florian.Lind... at xgm.de> wrote:
> Hello,
> I have a function from a library thast expects a file object as argument.
> How can I manage to give the function a string resp. have the text it would
> have written to file object as a string?
>
> Thanks,
>
> Florian
See
http://docs.python.org/lib/module-StringIO.html
--
Arnaud
More information about the Python-list
mailing list