[Python-ideas] Object interface to path names

David Townshend aquavitae69 at gmail.com
Wed Sep 14 07:49:20 CEST 2011

Thanks for the pointer - PyFilesystem looks perfect for my requirements!

I've had a look at PEP 355 and can see the drawbacks to the proposed
implementation (especially subclassing str), but I'm not clear on what the
problems are with the concept.  Would something like PyFilesystem be any
more palatable?

On Wed, Sep 14, 2011 at 1:22 AM, Matt Joiner <anacrolix at gmail.com> wrote:

> That library, pyfilesystem has some serious firepower.
> On Sep 14, 2011 1:33 AM, "David Townshend" <aquavitae69 at gmail.com> wrote:
> >
> > But none of these seem to allow asynchronous calls, which make a huge
> difference when dealing with a large structure. Nothing I've found really
> does what I need and I'm trying to keep my dependency list short so I'll end
> up writing something myself anyway, but my real question was whether this is
> something that could usefully be included in the stdlib.
> >
> >> Having an object-oriented / polymorphic file API means that one can
> >> provide file objects that aren't backed by the filesystem, but look
> >> the same. This is cool in that you can do things like treat zip files
> >> as directory, or mock out the filesystem for a unit test, without
> >> worrying about monkeypatching builtins or using a nonstandard wrapper
> >> API etc.
> >
> >
> > Great use case!  And using factories to create create the objects would
> make this especially powerful.
> >
> > _______________________________________________
> > Python-ideas mailing list
> > Python-ideas at python.org
> > http://mail.python.org/mailman/listinfo/python-ideas
> >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20110914/bc55ff63/attachment.html>

More information about the Python-ideas mailing list