Thanks for the pointer - PyFilesystem looks perfect for my requirements!<div><br></div><div>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?<br>
<br><div class="gmail_quote">On Wed, Sep 14, 2011 at 1:22 AM, Matt Joiner <span dir="ltr"><<a href="mailto:anacrolix@gmail.com">anacrolix@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<p>That library, pyfilesystem has some serious firepower.</p>
<p></p><div><div></div><div class="h5">On Sep 14, 2011 1:33 AM, "David Townshend" <<a href="mailto:aquavitae69@gmail.com" target="_blank">aquavitae69@gmail.com</a>> wrote:<br>
><br>
> 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.<br>
><br>
>> Having an object-oriented / polymorphic file API means that one can<br>
>> provide file objects that aren't backed by the filesystem, but look<br>
>> the same. This is cool in that you can do things like treat zip files<br>
>> as directory, or mock out the filesystem for a unit test, without<br>
>> worrying about monkeypatching builtins or using a nonstandard wrapper<br>
>> API etc.<br>
><br>
><br>
> Great use case! And using factories to create create the objects would make this especially powerful.<br>
><br></div></div><div class="im">
> _______________________________________________<br>
> Python-ideas mailing list<br>
> <a href="mailto:Python-ideas@python.org" target="_blank">Python-ideas@python.org</a><br>
> <a href="http://mail.python.org/mailman/listinfo/python-ideas" target="_blank">http://mail.python.org/mailman/listinfo/python-ideas</a><br>
><br>
</div><p></p>
</blockquote></div><br></div>