ironpython3 icon indicating copy to clipboard operation
ironpython3 copied to clipboard

PEP 468 – Preserving the order of **kwargs in a function

Open slozier opened this issue 3 years ago • 2 comments

https://docs.python.org/3/whatsnew/3.6.html#pep-468-preserving-keyword-argument-order

https://peps.python.org/pep-0468/

slozier avatar May 17 '22 01:05 slozier

This was implemented by having dict preserve order in CPython, and is a feature as of Python 3.7.

There's a nice summary of the implementation in this StackOverflow post: https://stackoverflow.com/questions/39980323/are-dictionaries-ordered-in-python-3-6

Does it make sense to do something similar by modifying CommonDictionaryStorage?

dc366 avatar May 19 '22 03:05 dc366

There's also a nice presentation by Raymond Hettinger about modern dictionaries which explains things at a high level.

Does it make sense to do something similar by modifying CommonDictionaryStorage?

Yes, that is probably the way to go.

slozier avatar May 19 '22 13:05 slozier