[path-PEP] Path inherits from basestring again

Michael Hoffman cam.ac.uk at mh391.invalid
Mon Jul 25 10:44:05 CEST 2005

Reinhold Birkenfeld wrote:
> Tony Meyer wrote:

>>Do people really like using __div__ to mean join?  On the python-dev
>>discussion, Just van Rossum spoke out against it, but there weren't (IIRC)
>>any other comments, either pro or con.
> I'm not too happy with it, too, but do we have alternatives? As paths are strings,
> we can hardly override the '+' operator, so there's not much operators left.
> Of course, one can use joinwith() if he doesn't like '/'.

I've used the path module pretty extensively and always use joinpath(). 
Personally, I'm -0 on __div__, but I suppose if anyone here claimed to 
have used in the past, rather than it just being some novelty that might 
be a good idea, that would be good enough for keeping it.
Michael Hoffman

More information about the Python-list mailing list