ANN: pythonfs - create linux filesystems in python

John J. Lee jjl at pobox.com
Wed Dec 10 09:09:45 EST 2003


Peter Hansen <peter at engcorp.com> writes:

> Rene Pijlman wrote:
> > 
> > David McNab:
> > >a framework which allows mountable linux filesystems to be
> > >implemented in pure python.
> > 
> > Serious question: why?
> 
> Just thought of another possibility: might be useful for doing
> unit testing where one could use the Python-based filesystem to
> mock a real filesystem, but simulate certain particularly difficult
> kinds of errors (corruption, files that go missing, invalid file names)
> that might happen in extreme situations.

Better to clobber open() than to risk crashing your kernel, though!

Though maybe rebinding open won't remain legal forever...


John




More information about the Python-list mailing list