[Tutor] How to create memory backed file?

Emile van Sebille emile at fenx.com
Sun Dec 27 22:41:26 CET 2009

On 12/27/2009 12:03 PM Alan Gauld said...
> "Modulok" <modulok at gmail.com> wrote
>> How do I create a file which exists only in memory? (Think diskless.)
> The nearest I can think of is probably StringIO
> Take a look at the docs for that and see if it works for you...

There's also http://docs.python.org/library/mmap.html -- but I've never 
tried it.


More information about the Tutor mailing list