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 arigo
Recipients arigo, nikratio, rhettinger
Date 2013-10-28.09:06:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Hi Raymond!  Yes, I had the same reaction at first, but then it seemed to be possible to implement a reasonably good behavior with almost no performance hit.

Plainly undefined behaviors are a mess for other implementations because in half of the big projects people don't realize they depend on it at some place --- particularly if the behavior is "mostly sane", as it seems to be right now for OrderedDict.

For example, I believe the following code to always work:

    for key in ordered_dict:
        if some_condition:
            del ordered_dict[key]

whereas it always raise RuntimeError with regular dicts, which are both ok choices.  But silently not working would be much worse.
Date User Action Args
2013-10-28 09:06:17arigosetrecipients: + arigo, rhettinger, nikratio
2013-10-28 09:06:17arigosetmessageid: <>
2013-10-28 09:06:17arigolinkissue19414 messages
2013-10-28 09:06:17arigocreate