[issue13252] new decumulate() function in itertools module

2012-08-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: I also agree that the itertools module doesn't need this. (Reasons of "symmetry" are insufficient to make the module fatter that it already is). In addition, there are already a number of simple ways to do this. -- resolution: -> rejected status:

[issue13252] new decumulate() function in itertools module

2012-07-22 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger priority: normal -> low ___ Python tracker ___ ___ Python-bugs-list mailing

[issue13252] new decumulate() function in itertools module

2012-07-22 Thread Ezio Melotti
Ezio Melotti added the comment: I don't think this should go in itertools. It could go in the recipes at the bottom of the itertools doc, if you can provide some valid use cases (and possibly a patch too). -- nosy: +ezio.melotti stage: -> needs patch versions: +Python 3.4 -Python 3.

[issue13252] new decumulate() function in itertools module

2011-10-24 Thread Nick Coghlan
Nick Coghlan added the comment: OK, looking at the code I realised what you're trying to get at is the idea of reporting the differences between values in a series, such that: x = list(accumulate(seq)) assert x == list(accumulate(differences(x))) I don't think the use cases are there to justi

[issue13252] new decumulate() function in itertools module

2011-10-23 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- nosy: +petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue13252] new decumulate() function in itertools module

2011-10-23 Thread Carlo Verre
New submission from Carlo Verre : 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]