[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: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13252
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13252] new decumulate() function in itertools module

2012-07-22 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com 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.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13252
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13252] new decumulate() function in itertools module

2012-07-22 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


--
assignee:  - rhettinger
priority: normal - low

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13252
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13252] new decumulate() function in itertools module

2011-10-24 Thread Petri Lehtinen

Changes by Petri Lehtinen pe...@digip.org:


--
nosy: +petri.lehtinen

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13252
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13252] new decumulate() function in itertools module

2011-10-24 Thread Nick Coghlan

Nick Coghlan ncogh...@gmail.com 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 justify the addition (not every 
iterator we can think of should be a building block in itertools), but if such 
a thing were to be added, differences would convey the intention 
significantly better than the invented term decumulate.

--
nosy: +ncoghlan

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13252
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13252] new decumulate() function in itertools module

2011-10-23 Thread Carlo Verre

New submission from Carlo Verre carlo.ve...@gmail.com:

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.

--
components: Extension Modules
files: decumulate.py
messages: 146263
nosy: carlo.verre, rhettinger
priority: normal
severity: normal
status: open
title: new decumulate() function in itertools module
type: feature request
versions: Python 3.3
Added file: http://bugs.python.org/file23507/decumulate.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13252
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com