ANN: pythonfs - create linux filesystems in python

John J. Lee jjl at
Wed Dec 10 15:09:45 CET 2003

Peter Hansen <peter at> 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...


More information about the Python-list mailing list