[issue38200] Adding itertools.pairwise to the standard library?

Vedran Čačić report at bugs.python.org
Wed Sep 18 14:25:55 EDT 2019


Vedran Čačić <vedgar at gmail.com> added the comment:

I also use it all the time. Most recently in some numerical calculation for successive differences. My main problem is that I'm too often tempted to just zip l with l[1:], thereby restricting the code to sequences, when it would work perfectly well for any iterable. (Just as I sometimes write range(lots of nines) instead of itertools.count() *shame*;)

----------
nosy: +veky

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38200>
_______________________________________


More information about the Python-bugs-list mailing list