diff options
author | Guido van Rossum <guido@python.org> | 2002-07-16 20:24:46 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-07-16 20:24:46 (GMT) |
commit | 613bed3726af921be64900bd0cb8209193873411 (patch) | |
tree | fcb29d8f30605df0371a24b50bfe1d6e504bec47 /Python/marshal.c | |
parent | 6b6272c8575879cb792d2ea76544597c27ab0de4 (diff) | |
download | cpython-613bed3726af921be64900bd0cb8209193873411.zip cpython-613bed3726af921be64900bd0cb8209193873411.tar.gz cpython-613bed3726af921be64900bd0cb8209193873411.tar.bz2 |
Make StopIteration a sink state. This is done by clearing out the
object references (it_seq for seqiterobject, it_callable and
it_sentinel for calliterobject) when the end of the list is reached.
Also remove the next() methods -- 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 'Python/marshal.c')
0 files changed, 0 insertions, 0 deletions