Replaced the reference implementation with one that's closer to what
the C code will actually look like; i.e. it obeys the iteration
protocol.
Other grammar and spelling fixes.
documented in PEP1, remove the Emacs page breaks.
Also, Owner: -> Author:, added Created: and Post-History: headers
Changed "Standard For-Loops" section to "Motivation" and shortened
considerably; readers already know how for-loops work in Python.
Added notes about Guido's veto of lazy evaluation.
Patches to the reference implementation:
__getitem__() raises IndexError immediately if no sequences were
given.
__len__() returns 0 if no sequences were given.
__cmp__() new method
Added a little more explanation to raise-a-TypeError-for-zip(a)
Added `fold' as one of the alternative names proposed.
and the one TBD in there should be an 'XXX' in my opinion ;) but with a lot
of issues under 'Open issues'.
Please, comment freely, on anything from specific arguments and spelling
errors to style issues and argument-flow. I wrote all this on the train to
and from work, listening to UB40 on the way to work, and to my girlfriend
complaining about her work and her colleagues on the way home ;) So it might
be a bit incoherent in places.
One TBD that's going to come up a lot in PEPs, I think: how to wrap long
URLs ? I think whoever invents a good way to do that can become a
millionaire. Can we define/steal a good, standard way to wrap URLs, please ?
After consultation with Guido, zip() is chosen as the name of this
built-in.
In reference implementation added an __len__() method.
Added a `Rejected Elaborations' section to talk about suggestions from
the list that I've rejected (and the reasoning behind the rejection).
Also: rewrite of paragraph 1 under "Standard For-Loops" for clarity;
Spelling and grammar fixes; use a References section.
only the arguments for/against inclusion of augmented assignment in Python,
not yet the technical details. I decided to upload this half-completed
version to give people some time to respond before I finish it :-)
Feel free to bring up any and all arguments. The point of the PEP is to
archive those, after all!