On Tue, Apr 28, 2020 at 7:49 AM Brandt Bucher <brandtbuc...@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
_______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/TIJ6JBBX7GMRRVYTE7I7EXNLXMHTOIQY/ Code of Conduct: http://python.org/psf/codeofconduct/