Truly platform-independent DB access in Python?

2006-08-28 Thread bobrik
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

Re: in-memory-only file object from string

2006-08-23 Thread bobrik
> See the standard modules: StringIO and cStringIO Thank you! -- http://mail.python.org/mailman/listinfo/python-list

in-memory-only file object from string

2006-08-23 Thread bobrik
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