summaryrefslogtreecommitdiffstats
path: root/Mac/Resources
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-07-16 20:30:22 (GMT)
committerGuido van Rossum <guido@python.org>2002-07-16 20:30:22 (GMT)
commit2147df748fa0a44beede227af9e595fe96fd7a14 (patch)
treec94b7dc11af97eebb6b2efbe0db4fe2e3f0910b5 /Mac/Resources
parent613bed3726af921be64900bd0cb8209193873411 (diff)
downloadcpython-2147df748fa0a44beede227af9e595fe96fd7a14.zip
cpython-2147df748fa0a44beede227af9e595fe96fd7a14.tar.gz
cpython-2147df748fa0a44beede227af9e595fe96fd7a14.tar.bz2
Make StopIteration a sink state. This is done by clearing out the
di_dict field when the end of the list is reached. Also make the error ("dictionary changed size during iteration") a sticky state. 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 'Mac/Resources')
0 files changed, 0 insertions, 0 deletions