This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Rosuav
Recipients Rosuav, arigo, ethan.furman, nikratio, rhettinger, serhiy.storchaka
Date 2014-04-12.19:12:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1397329946.61.0.319926417455.issue19414@psf.upfronthosting.co.za>
In-reply-to
Content
I agree that current behaviour is a bit confusing; also, the implication is that deleting from the dictionary while you have an iterator may leave some hanging references around the place, which raises a red flag in my mind (maybe something else might find the stale data, too).

My inclination would be to Armin's idea of setting next to None. Seems simpler than trying too hard to patch around something that's a bad idea anyway.
History
Date User Action Args
2014-04-12 19:12:26Rosuavsetrecipients: + Rosuav, arigo, rhettinger, nikratio, ethan.furman, serhiy.storchaka
2014-04-12 19:12:26Rosuavsetmessageid: <1397329946.61.0.319926417455.issue19414@psf.upfronthosting.co.za>
2014-04-12 19:12:26Rosuavlinkissue19414 messages
2014-04-12 19:12:26Rosuavcreate