7 May
2020
7 May
'20
2:37 a.m.
On Wed, May 6, 2020 at 10:34 PM David Mertz <mertz@gnosis.cx> 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