[Python-Dev] PEP 201 - Parallel iteration

Fredrik Lundh fredrik@pythonware.com
Tue, 18 Jul 2000 11:46:27 +0200


peter wrote:
> I still think the third form is more explicit, but I am
> +0 on making zip() a sequence method.

Remember the "string join" debate?

There is no sequence base class in Python (it's an informal inter-
face, not a type), so where would you put that method?

As specified, "zip" has a *single* implementation which takes
any number of objects implementing the sequence interface,
and return an object implementing the same interface.  Can it
be much simpler?

-1 on a method.  Python is moving towards more genericness
(if you accept an integer/sequence/string, you should be able
to deal with any kind of integer/sequence/string).  Adding a
method would be a move in the opposite direction.

</F>