[issue27576] An unexpected difference between dict and OrderedDict

Raymond Hettinger report at bugs.python.org
Tue Jul 19 19:13:18 EDT 2016


Raymond Hettinger added the comment:

This does need to be fixed.  

FWIW, here is the relevant docstring from MutableMapping:
        ''' D.update([E, ]**F) -> None.  Update D from mapping/iterable E and F.
            If E present and has a .keys() method, does:     for k in E: D[k] = E[k]
            If E present and lacks .keys() method, does:     for (k, v) in E: D[k] = v
            In either case, this is followed by: for k, v in F.items(): D[k] = v
        '''

----------
nosy: +rhettinger

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


More information about the Python-bugs-list mailing list