Pickle a file object

Gumuz gumuz at looze.net
Mon Dec 2 05:53:28 EST 2002


ah, thanx

so what _is_ a prefered way to embed a file in a 'picklable' datastructure?


guyon




"Martin v. Löwis" <martin at v.loewis.de> wrote in message
news:m3y9783fgg.fsf at mira.informatik.hu-berlin.de...
> "Gumuz" <gumuz at looze.net> writes:
>
> > Is it possible to pickle an asigned file object?
>
> No. You can try to pickle the file name, opening mode, and offset,
> though.
>
> Regards,
> Martin





More information about the Python-list mailing list