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 ethan.furman
Recipients arigo, ethan.furman, nikratio, rhettinger
Date 2013-10-30.17:15:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The further from dict it goes, the more there is to remember.  Considering the work around is so simple, I just don't think it's worth it:

    for key in list(ordered_dict):
        if some_condition:
            del ordered_dict[key]

A simple list around the dict and we're good to go; and this trick works with dicts, defaultdicts, sets, lists (when you don't want the skipping behavior), etc.
Date User Action Args
2013-10-30 17:15:30ethan.furmansetrecipients: + ethan.furman, arigo, rhettinger, nikratio
2013-10-30 17:15:30ethan.furmansetmessageid: <>
2013-10-30 17:15:29ethan.furmanlinkissue19414 messages
2013-10-30 17:15:29ethan.furmancreate