Nikolaus Rath added the comment:

The workaround is trivial, but there is no technical necessity for it, and it 
involves copying the entire dict into a list purely for.. what exactly? I guess 
I do not understand the drawback of allowing changes. What is wrong with

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

to be working? Is it really just the fact that the above could does not work 
for regular dicts?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19414>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to