[Python-Dev] Re: iterzip()
Just van Rossum
Mon, 29 Apr 2002 17:15:11 +0200
Barry A. Warsaw wrote:
> My point was that since zip()'s output seems to be[*] used mostly in
> for-loop contexts, the incompatibility is mostly theoretical.
The very first example I found of zip() in my own code does a sort() on the
result, in a Schwarzian-transform-like sort method. It's pretty useful that way,
so I doubt my own code is unique with this usage.
I totally agree that zip() should have been an iterator, the same could be said
of range()... It's simply too late.