I want to create a ramdisk in Python. I want to be able to do this in a cross-platform way, so it\'ll work on Windows XP-to-7, Mac, and Linux. I want to be able to read/writ
One option might be to inject (monkey patch) modified versions of the methods used in the os module as well as the builtins open and file that write to StringIO files instead of to disk. Obviously this substitution should only occur for the module being tested;