diff options
author | Guido van Rossum <guido@python.org> | 2002-07-16 20:07:32 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-07-16 20:07:32 +0000 |
commit | 86103ae53161a136a53d031190c2d0579dba2abf (patch) | |
tree | ab25d196fdfec182a131b3472b6559053c16c4f6 /Objects/enumobject.c | |
parent | 9534e14033f26b32ed75c02a6a51bfe47c7f16a9 (diff) | |
download | cpython-git-86103ae53161a136a53d031190c2d0579dba2abf.tar.gz |
Make StopIteration a sink state. This is done by clearing out the
it_seq field when the end of the list is reached.
Also remove the next() method -- one is supplied automatically by
PyType_Ready() because the tp_iternext slot is set. That's a good
thing, because the implementation given here was buggy (it never
raised StopIteration).
Diffstat (limited to 'Objects/enumobject.c')
0 files changed, 0 insertions, 0 deletions