A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-July/037344.html below:

[Python-Dev] Re: zip() in Py2.4

[Python-Dev] Re: zip() in Py2.4 [Python-Dev] Re: zip() in Py2.4Guido van Rossum guido@python.net
Wed, 30 Jul 2003 12:55:13 -0400
[Argh! My followup got swallowed by a disconnect.]

The CA air is definitely cool, but I'm not quite settled --
I'm still living in a hotel room with my family, at least until
Friday.

My rationale for zip() refusing to be called without arguments
is that this is more likely a mistake than intentional.

Admittedly I hadn't foreseen using zip(*xxx).

There are two sides to this.

1) Someone mistakenly types zip().  If they get an empty list,
   how confused will they be?  Will their program finish with
   bogus output, or will the empty list cause a speedy failure?

2) How realistic is the use case for zip(*[])?

--Guido



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4