Re:Sunsetting Python 2
by sametmax on Monday September 09, 2019 @02:02PM
(#20920627)
Ordered dicts and f-strings are also very sweet!
[ Parent
| on HN ]
I expect sametmax was referring to the new feature in Python 3.6 that plain old `dict` now preserves the insertion order of its elements. See docs here:
https://docs.python.org/3/library/stdtypes.html#dict.values
(Or in language-lawyer terms: CPython 3.6 introduced this behavior and documented it as an implementation detail, and for Python 3.7+ it's guaranteed a feature of the language proper.)
Re:Sunsetting Python 2
by GeorgeTirebiter on Monday September 09, 2019 @05:39PM
(#20922741)
And optional type specifiers. This was the key for me.