Python Forum
itertools.zip_shortest() fo unequal iterators
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
itertools.zip_shortest() fo unequal iterators
#1
itertools.zip_longest() exists but itertools.zip_shortest() does not. is there some other name to call to iterate each iterator (generator), in the given list, in parallel, stopping iteration when the shortest iterator (generator) runs out (length unknown in advance)?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
itertools.zip_shortest() fo unequal iterators - by Skaperen - Dec-25-2019, 02:15 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  itertools and amazing speed Pedroski55 8 2,119 Nov-11-2022, 01:20 PM
Last Post: Gribouillis
  Why are two variables unequal as they point to the same value? fc5igm 4 2,758 Jun-08-2021, 02:41 PM
Last Post: fc5igm
  What happens to a <itertools.permutations object at 0x7fe3cc66af68> after it is read? Pedroski55 3 2,446 Nov-29-2020, 08:35 AM
Last Post: DeaD_EyE
  Making lists using itertools and eliminating duplicates. mike3891 2 2,261 Oct-26-2020, 05:39 PM
Last Post: bowlofred
  Python3 itertools.groupby printing the key august 1 2,115 Aug-17-2020, 05:46 AM
Last Post: bowlofred
  Generate Cartesian Products with Itertools Incrementally CoderMan 2 1,870 Jun-04-2020, 04:51 PM
Last Post: CoderMan
  how to join 2 iterators Skaperen 2 2,711 Sep-11-2019, 07:19 PM
Last Post: Skaperen
  can itertools compact a list removing all of some value? Skaperen 6 3,225 Sep-02-2019, 03:19 AM
Last Post: Skaperen
  Help with itertools jarrod0987 1 1,834 Jun-10-2019, 02:41 AM
Last Post: Larz60+
  iterating over 2 iterators Skaperen 2 2,285 Jun-07-2019, 11:37 PM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020