13 Dec
2014
13 Dec
'14
5:24 a.m.
On Fri, Dec 12, 2014 at 4:14 PM, Terry Reedy
I propose that map.__next__ convert StopIteration raised by func to RuntimeError
Aren't we stepping on a slippery slope here? What about say
def f(x, y): ... if x > 2: ... raise StopIteration ... return x + y ... import itertools itertools.accumulate(range(10), f)
list(_) [0, 1, 3]