[Python-3000] ABC method mismatch

Guido van Rossum guido at python.org
Thu Feb 7 03:28:05 CET 2008


On Feb 6, 2008 5:21 PM, Aahz <aahz at pythoncraft.com> wrote:
> On Wed, Feb 06, 2008, Guido van Rossum wrote:
> > On Feb 6, 2008 2:58 PM, Fred Drake <fdrake at acm.org> wrote:
> >>
> >> I'd be happy seeing these methods added to tuple; there's no reason
> >> that they would only be useful on mutable sequences.
> >
> > Sounds like this is the consensus. Go for it, Raymond!
>
> Far be it from me to act the grinch (and I honestly don't care), but I'm
> curious what caused you to change your mind at this point.  You have
> argued against this for years:
>
> http://www.python.org/search/hypermail/python-1992/0285.html
>
> More recently, your argument has revolved around the fact that you don't
> want tuples used as a "poor man's list" -- they are intended to be used
> for heterogeneous data.  (Assuming I'm rephrasing you correctly.)
>
> (My purpose in poking you is to get better at channeling you rather than
> because this particular decision has much significance.)

Well, I guess I changed my mind when I made tuple a virtual subclass
of Sequence. That meant basically accepting it is *also* usable as an
immutable sequence. It is accepting what everybody has been saying for
a long time.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list