[Tutor] file object in memory

Monika Jisswel monjissvel at googlemail.com
Sat Jul 5 00:18:59 CEST 2008


You know bob, you are very clever, I have used RAM disk for realtime
recording of audio before but it never occured to me to use it for light
jobs like this one, I just compeletely ignored it as an option & by the way
this openes a lot of doors for many of my other programs.

but wouldn't it be very nice if there  was a way of creating a file object
inside python ? something like :
myfile = mkfile('some_string')
& we're done ?


I don't think there is a pure Pythonic way. Have you considered using a
> RamDisk? http://en.wikipedia.org/wiki/RAM_disk for general details.
>
>
> http://www.codeguru.com/cpp/w-p/system/devicedriverdevelopment/article.php/c5789/for a Windows Ram Disk driver installer. I just tried it - it works like a
> charm.
>
> HTH.
>
> --
> Bob Gailer
> 919-636-4239 Chapel Hill, NC
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080704/ec870243/attachment.htm>


More information about the Tutor mailing list