Message146263
After in Python 3.2 the accumulate() function has been added to itertools module, for self-evident reasons of completeness and symmetry we could add in 3.3 the inverse decumulate() function, which, given the iterable argument p, yields p[0], p[1] - p[0], p[2] - p[1]... Its equivalent python form is in the attached file decumulate.py, below. |
|
Date |
User |
Action |
Args |
2011-10-23 22:32:48 | carlo.verre | set | recipients:
+ carlo.verre, rhettinger |
2011-10-23 22:32:48 | carlo.verre | set | messageid: <1319409168.22.0.462760902888.issue13252@psf.upfronthosting.co.za> |
2011-10-23 22:32:47 | carlo.verre | link | issue13252 messages |
2011-10-23 22:32:47 | carlo.verre | create | |
|