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
#4
(Dec-25-2019, 07:11 PM)Skaperen Wrote: it wasn't in there.
it wasn't where? it's built-in function
and the docs are explicit:
Quote:The iterator stops when the shortest input iterable is exhausted.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
RE: itertools.zip_shortest() fo unequal iterators - by buran - Dec-25-2019, 07:18 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  itertools and amazing speed Pedroski55 8 2,340 Nov-11-2022, 01:20 PM
Last Post: Gribouillis
  Why are two variables unequal as they point to the same value? fc5igm 4 2,861 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,644 Nov-29-2020, 08:35 AM
Last Post: DeaD_EyE
  Making lists using itertools and eliminating duplicates. mike3891 2 2,387 Oct-26-2020, 05:39 PM
Last Post: bowlofred
  Python3 itertools.groupby printing the key august 1 2,188 Aug-17-2020, 05:46 AM
Last Post: bowlofred
  Generate Cartesian Products with Itertools Incrementally CoderMan 2 1,966 Jun-04-2020, 04:51 PM
Last Post: CoderMan
  how to join 2 iterators Skaperen 2 2,816 Sep-11-2019, 07:19 PM
Last Post: Skaperen
  can itertools compact a list removing all of some value? Skaperen 6 3,383 Sep-02-2019, 03:19 AM
Last Post: Skaperen
  Help with itertools jarrod0987 1 1,913 Jun-10-2019, 02:41 AM
Last Post: Larz60+
  iterating over 2 iterators Skaperen 2 2,405 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