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 serhiy.storchaka
Recipients Rosuav, eric.snow, methane, rhettinger, serhiy.storchaka, steve.dower
Date 2018-08-02.13:12:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1533215543.91.0.56676864532.issue34320@psf.upfronthosting.co.za>
In-reply-to
Content
>>> from collections import OrderedDict
>>> od = OrderedDict([('a', 1), ('b', 2)])
>>> od.move_to_end('a')
>>> od
OrderedDict([('b', 2), ('a', 1)])
>>> dict(od)
{'a': 1, 'b': 2}

This affects also PEP 468.

>>> def f(**kwargs): return kwargs
... 
>>> f(**od)
{'a': 1, 'b': 2}

And PEP 520.

>>> type('A', (), od).__dict__
mappingproxy({'a': 1, 'b': 2, '__module__': '__main__', '__dict__': <attribute '__dict__' of 'A' objects>, '__weakref__': <attribute '__weakref__' of 'A' objects>, '__doc__': None})
History
Date User Action Args
2018-08-02 13:12:23serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, methane, eric.snow, Rosuav, steve.dower
2018-08-02 13:12:23serhiy.storchakasetmessageid: <1533215543.91.0.56676864532.issue34320@psf.upfronthosting.co.za>
2018-08-02 13:12:23serhiy.storchakalinkissue34320 messages
2018-08-02 13:12:23serhiy.storchakacreate