[path-PEP] Path inherits from basestring again
peter at engcorp.com
Tue Jul 26 17:00:56 CEST 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.
More information about the Python-list