Hello,
I am using the Python DB API for access to MySQL. But it is not
platform-independent - I need a module not included in Python by
default - python-mysql, and it uses a compiled binary _mysql.so. So it
is not platform-independent because for each web-server on different
platform, I would have
> See the standard modules: StringIO and cStringIO
Thank you!
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
how to create a file object whose contents I initialize from a string
and which is purely in memory?
I can make a workaround like this:
filecontents = "Very interesting stuff ... "
file = os.tmpfile ()
file.write (filecontents)
file.seek (0)
procedure (fileobject = file)
but this creates