[Python-ideas] kw to be ordered dict

Sebastian Krause sebastian at realpath.org
Thu Sep 8 18:44:19 EDT 2016


Arek Bulski <arek.bulski at gmail.com> wrote:
> I expected the **kw to reproduce the same order as actual keyword
> arguments. The only right way to solve it, as it seems to me, would be to
> make **kw an OrderedDict.

FYI: A change that keeps the order of **kw was just committed, so
3.6 will have that behavior:

https://mail.python.org/pipermail/python-dev/2016-September/146327.html

Sebastian


More information about the Python-ideas mailing list