[Python-Dev] Alternative path suggestion

Greg Ewing greg.ewing at canterbury.ac.nz
Sat May 6 13:08:31 CEST 2006


Mike Orr wrote:

> How do you do slicing and joining?  If Path subclasses object, it
> could be done there like in the first example.  But if Path subclasses
> string,

Er, hang on, I thought the idea was that it wouldn't
subclass either tuple *or* str, but would be a new
class all of its own.

That seems like the best idea, because it gives the
most flexibility for dealing with the quirks of
different systems' pathname semantics.

--
Greg


More information about the Python-Dev mailing list