>>> from collections import OrderedDict
>>> OrderedDict(**{1:2})
OrderedDict([(1, 2)])So this leads to the question: should the interpreter check the keys of
a **kwargs dict?
I don't have an answer myself, I'm just asking the question because it
comes up in https://github.com/python/cpython/pull/13930 and
https://github.com/python/cpython/pull/14589
Jeroen. _______________________________________________ Python-Dev mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/7CYDQX5T53XK7TWPV3MTYPTHM2KFUBWS/