[path-PEP] Path inherits from basestring again

Peter Hansen peter at engcorp.com
Tue Jul 26 11:00:56 EDT 2005


Ron Adam wrote:
>>>> Tony Meyer wrote:
>>>>> Do people really like using __div__ to mean join?  

> I think the '+' is used as a join for both strings and lists, so it 
> would probably be the better choice as far as consistency with the 
> language is concerned.

The issue with that is that as long as we are subclassing strings, the + 
is already defined for a useful operation and the subclass probably 
shouldn't be changing the way that works.

-Peter



More information about the Python-list mailing list