Using string as file

Paddy paddy3118 at
Tue Mar 6 19:31:24 CET 2007

On Mar 5, 8:13 pm, Florian Lindner <Florian.Lind... at> 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

You can also look at example 3 here:

- Paddy.

More information about the Python-list mailing list