Commit Graph

20 Commits

Author SHA1 Message Date
Raymond Hettinger 6e249d8955 * Document the reasoning for having zip(*[]) return [] rather than raising
an exception.

* Add notes about the itertools module addressing other concerns listed in
  the pep.
2003-08-02 06:32:12 +00:00
Barry Warsaw 295e210393 barry@digicool.com => barry@zope.com 2001-08-14 15:45:26 +00:00
Fred Drake 63570042bf It's "barry" now, not "bwarsaw"... 2000-10-30 21:16:38 +00:00
Fred Drake ceba1877b2 Update a few email addresses. 2000-10-30 20:48:44 +00:00
Barry Warsaw cf52f70cfe Accepted, implemented, and checked in, thus mark this as Final. 2000-09-23 08:19:29 +00:00
Barry Warsaw 236ed3e71a Added Type: header, and rearranged other headers a bit. 2000-08-23 05:12:55 +00:00
Barry Warsaw 8a03f9cff1 This proposal has been accepted by the BDFL. 2000-08-03 15:41:47 +00:00
Barry Warsaw 439276bd34 Added a BDFL justification to why there's no optional pad argument. 2000-07-31 16:52:52 +00:00
Barry Warsaw 88002f143d Integrated many suggestions from c.l.py and others. Nothing
substantial w.r.t. the proposed solution, just clarifications,
additional references, and an explanation of why most syntax changes
don't work.
2000-07-31 15:52:45 +00:00
Barry Warsaw a4a4286ce1 Parallel => Lockstep everywhere.
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.
2000-07-28 05:48:25 +00:00
Barry Warsaw fe5979f609 added Post-History entry 2000-07-27 19:17:36 +00:00
Barry Warsaw db155e70e5 small typo 2000-07-27 19:17:15 +00:00
Barry Warsaw 15c9185e18 Updated based on Guido's recent pronouncements on the Open Issues.
There are now no more open issues.
2000-07-27 19:15:20 +00:00
Barry Warsaw c8fc9eb3fb Fixed reference [1] to point to the current documentation, not the
devel copy (thanks to Fred Drake, Dr. Docs!)
2000-07-26 04:22:03 +00:00
Barry Warsaw e6b5c62573 Added Paul's latest crop of names to the list of proposed alternatives
in Open Issues.
2000-07-25 22:00:05 +00:00
Barry Warsaw 516a1a8b52 In a compromise with JHy, and to be more consistent with the style now
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.
2000-07-25 21:51:55 +00:00
Barry Warsaw 3bc6d31633 Added a few more open issues:
- what should "zip()" do (i.e. zip with no arguments).

- should zip() be included in the builtins?

- the padtuple proposal
2000-07-24 17:40:00 +00:00
Barry Warsaw f25a70097b In the examples section, show how zip() is reversible.
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.
2000-07-19 04:19:54 +00:00
Barry Warsaw be3c33389e Latest update.
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.
2000-07-17 18:49:21 +00:00
Barry Warsaw 41021a4bf9 Initial set of Python Enhancement Proposals 2000-07-13 06:33:08 +00:00