[Pythonmac-SIG] Strange question.....string -> Filehandle
Jack Jansen
jack@oratrix.nl
Fri, 29 Jun 2001 15:20:33 +0200
If by "filehandle" you mean "MacOS Filehandle" there's little choice but
writing it out to file. The macos API knows very little about Python strings
or the Python API.
If by "filehandle" you mean "Python file object" you should lookat the
StringIO class, this does what you want.
--
Jack Jansen | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig ++++
www.oratrix.nl/~jack | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm