Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:

FWIW, pairwise() is in the more-itertools module.  A quick code search does 
show occasional use in the wild:  
https://github.com/search?q=language%3Apython+more_itertools.pairwise&type=Code 
 

In my own code, I've had some cases that almost fit but they needed custom 
padding on one end or both ends:  zip([0.0] + data, data + [1.0]). Also, its 
unclear where anyone would want a wider sliding window.

Tim, do you have any thoughts about pairwise()?

----------
nosy: +tim.peters

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38200>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to