[Python-Dev] Iterable String Redux (aka String ABC)
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri May 30 10:21:10 CEST 2008
Georg Brandl wrote:
> Greg Ewing schrieb:
>
>> A better solution to that might be to have UserString
>> inherit from basestring.
>
> But with that argument you could throw out the whole ABC machinery,
> just let all lists inherit from list, all dicts from dict, etc.
Well, I'm skeptical about the whole ABC thing in the
first place -- it all seems very unpythonic to me.
But another way of thinking about it is that we
already have an ABC of sorts for strings, and it's
called basestring. It might be better to enhance
that with whatever's considered missing than
introducing another one.
--
Greg
More information about the Python-Dev
mailing list