> See the standard modules: StringIO and cStringIO
Thank you!
--
http://mail.python.org/mailman/listinfo/python-list
At Wednesday 23/8/2006 18:56, bobrik wrote:
how to create a file object whose contents I initialize from a string
and which is purely in memory?
See the standard modules: StringIO and cStringIO
Gabriel Genellina
Softlab SRL
Title: in-memory-only file object from string
The mmap module should do
what you are looking for. It allows you to store data in memory (hence the name
memory map) and treat it as both a string and a file.
From:
[EMAIL PROTECTED] on behalf of
bobrikSent: Wed 8/23/2006 2:56 PMTo:
python