On Wed, May 6, 2020 at 10:34 PM David Mertz <[email protected]> wrote: > > >> zip.shortest(...) # same as zip(...) / zip.longest(...) / >> zip.checksame(...) > > This is a very good example. chain.from_iterator() feels a little weak to > me since there's just the one alternate constructor, whereas zip would > hypothetically have several. > > But I actual do use both 'datetime(...)' and 'datetime.fromfoo(...)' in > practice. I had forgotten those. > > I don't prefer this API, but I don't hate it given the examples. >
zip.shortest(), zip.same or .equal or .checksame(), zip.longest().... I really like how smoothly those read. +1 on this from me. --- Ricky. "I've never met a Kentucky man who wasn't either thinking about going home or actually going home." - Happy Chandler
_______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/PS2CWNHE4WK6J76QGDBZJMMGZAMXDF2I/ Code of Conduct: http://python.org/psf/codeofconduct/
