12 Dec
2014
12 Dec
'14
4:36 p.m.
Terry Reedy wrote:
PEP 479 reverses this acceptance by having generator.__next turn StopIteration raised in a user-written generator function body into a RuntimeError. I propose that other builtin iterator.__next__ methods that execute a passed in function do the same.
Maybe also any user-written function whose name isn't "__next__"? -- Greg