commit | 86103ae53161a136a53d031190c2d0579dba2abf | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Tue Jul 16 20:07:32 2002 +0000 |
committer | Guido van Rossum <guido@python.org> | Tue Jul 16 20:07:32 2002 +0000 |
tree | ab25d196fdfec182a131b3472b6559053c16c4f6 | |
parent | 9534e14033f26b32ed75c02a6a51bfe47c7f16a9 [diff] |
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).