[issue19414] OrderedDict.values() behavior for modified instance

Ethan Furman report at bugs.python.org
Wed Oct 30 20:02:47 CET 2013


Ethan Furman added the comment:

Nikolaus, in reply to your question about "more to remember":

Even though I may not use it myself, if it is allowed then at some point I will see it in code; when that happens the sequence of events is something like:

  1) hey, that won't work
  2) oh, wait, is this an OrderedDict?
  3) (yes) oh, okay, it's fine then <done>
  3) (no) hmm, well, it was supposed to be, but a regular dict was
     passed in
  4) okay, we either fix the code here to handle regular dicts (use
     list idiom); or
     go back to calling code and make this an OrderedDict

I see that as a lot of extra effort for a non-necessary change.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19414>
_______________________________________


More information about the Python-bugs-list mailing list