Python 3.7.2 (default, Feb 12 2019, 08:15:36) [Clang 10.0.0 (clang-1000.11.45.5)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import inspect >>> inspect.Signature().parameters mappingproxy(OrderedDict()) >>> def foo(a): pass ... >>> ba = inspect.signature(foo).bind(1) >>> ba.arguments OrderedDict([('a', 1)])
I'm neutral on whether to move this forward or not. Usually, we would only make an externally visible and possibly consequential API change if there were some compensating benefit to users (a significant speed-up for example). Also note that the existing code uses move_to_end() so there is some case to be made that OrderedDict() was a reasonable choice even if dict() had been an option from the outset. I suggest leaving this as-is.