
On Tue, Apr 28, 2020 at 7:49 AM Brandt Bucher <brandtbucher@gmail.com> wrote:
With that in mind, I've started drafting one summarizing the discussion that took place here, and arguing for the addition of a boolean flag to the `zip` constructor.
Since you've gotten a few -1s, I'll add a +1 -- for reasons posted here before, a flag is far more likely to actually get used :-) -- but that's why we need a PEP. However, I urge you to consider a trinary switch instead: "shortest" (default) | "longest" | "equal" Yes, we already have zip_longest, but if we're adding switching behavior to zip(), it might as well handle all cases -- that seems a cleaner API to me. -CHB -- Christopher Barker, PhD Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wxPython, numpy, scipy, Cython