On Feb 6, 2008 2:29 PM, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > The tuple class is registered to the collections.Sequence ABC, but it does > not support count() and index() as required by the ABC.
Good catch! > Do you want to drop those methods from the ABC or add them to tuple? I'm not sure, but I'm tempted to add them to the ABC. What's your hunch? Do others have an opinion? They shouldn't be a burden for implementers who use real inheritance from Sequence, as they are concrete methods there. And it doesn't make sense to move them to MutableSequence, because there's nothing in them that requires the sequence to be mutable. -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com