[Python-ideas] Dictionary destructing and unpacking.

Victor Stinner victor.stinner at gmail.com
Thu Jun 8 01:57:44 EDT 2017


> In python 3.6+ this is better since the dictionary is insertion-ordered,
but is still not really what one would probably want.

Be careful: ordered dict is an implementation detail. You must use
explicitly collections.OrderedDict() to avoid bad surprises.

In CPython 3.7, dict might change again.

Victor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170608/11c9e3ef/attachment-0001.html>


More information about the Python-ideas mailing list