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

Re: in-memory-only file object from string

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

RE: in-memory-only file object from string

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