Nick Coghlan <ncogh...@gmail.com> added the comment:

That's one of the nicer attempts I've seen at an object-oriented path library, 
but I have a core problem with OOP path APIs, and it relates to the Unicode 
encoding/decoding problem: the ultimate purpose of path objects is almost 
always to either pass them to the OS, or else to another application. That 
exchange will almost *always* happen as a plain string.

So when your approach is based on a more sophisticated type internally, you end 
up having to be very careful about all of your system boundaries, making sure 
that "paths" are correctly being turned into "Paths".

However, one of my hopes for iterwalk will be that it *won't* care if the 
underlying walk iterator produces Path objects instead of ordinary strings, so 
long as those objects can be passed to fnmatch, os, etc and work correctly.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13229>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to