[Tutor] file object in memory
bob gailer
bgailer at gmail.com
Sat Jul 5 02:12:31 CEST 2008
Monika Jisswel wrote:
> You know bob, you are very clever
Yes. I've observed that before.
> , 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.
Oh good.
>
> 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')
The trick is getting the os to see this object as a disk drive. My
limited research reveals only ram disk as a way to do that.
--
Bob Gailer
919-636-4239 Chapel Hill, NC
More information about the Tutor
mailing list