Wishlist item: itertools.flatten
gene.tani at gmail.com
gene.tani at gmail.com
Sat Mar 12 14:02:33 EST 2005
window / cons / fencepost / slice functions: +1
(with a flag to say if you want to truncate or pad incomplete tuples at
end of input sequence.
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/303279
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/303060
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/347689
Probably more recipes in there, (and not CPAN-ish yet) but multiple
submissions bespeak a certain need, i think.
More information about the Python-list
mailing list