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/2000-July/006212.html below:

[Python-Dev] zip() and list-comprehension with commas)

permuting several lists (was Re: [Python-Dev] zip() and list-comprehension with commas)Jack Jansen jack@oratrix.nl
Wed, 12 Jul 2000 11:44:46 +0200
parallel()/zip() have an other advantage: it would be easy to extend to let 
the loop continue until the longest of the items, with a keyword argument:
  parallel((1, 2), (3, 4, 5), missing=None) # or extend, or some other name
would return
  ((1, 3), (2, 4), (None, 5))

By the way: -1 on the name zip() and -0 on the name parallel(), but +1 on the 
concept.
--
Jack Jansen             | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig ++++
www.oratrix.nl/~jack    | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm 





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