@trey.ioTrey Hunner @trey.io
2026-11-24 04:16 UTC
Note that pairwise will pair up the last 2 items but the last item has nothing to pair with, so pairwise stops just before it. If you want None included after the last item, you could use itertools.chain: for day, next_day in pairwise(chain(days, [None])): ...
A reply in a thread.
0 likes, 0 reposts, 1 replies
3 Next post4 More from @trey.ioBackBluesky home