Skip to main content
1 of 2
Kevin
  • 2.7k
  • 2
  • 18
  • 23

Your premise is incorrect. As of Python 3.6, dicts remember their insertion order. This is currently an implementation detail, but will likely be promoted to a full language feature in the near future. In the meantime, for the specific case of **kwargs, order preservation is specifically guaranteed.

Kevin
  • 2.7k
  • 2
  • 18
  • 23