[Python-ideas] Object interface to path names

David Townshend aquavitae69 at gmail.com
Tue Sep 13 17:33:06 CEST 2011

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20110913/d701285b/attachment.html>

More information about the Python-ideas mailing list