Re:Python dicts are now ordered
by throwawaylolx on Friday February 07, 2020 @11:15AM
(#22267413)
Where "now" dates back to 2018? https://docs.python.org/3/whatsnew/3.7.html
[ Parent
| on HN ]
Re:Python dicts are now ordered
by throw18374 on Friday February 07, 2020 @12:50PM
(#22268642)
Came to say the same.. insertion order of dict has been here for years for 90+% of Python users (CPython implementation) and a part of the language spec also for almost as many years.
I guess it’s good to spread awareness to HN readers who apparently were unaware, but the headline is very misleading.
90% seems optimistic. I don't think that many Python projects are running the most recent version in production. From personal experience, upgrading to 3.7 was especially a pain because of packages that used "async" for variable/kwarg names.
Re:Python dicts are now ordered
by throw18374 on Saturday February 08, 2020 @01:16AM
(#22274263)
That’s a very good point, in that case even 50% would probably be optimistic.
We can probably attribute this article’s novelty to the slow adoption of Python 3. In that way it’s probably a good thing that it’s such a popular topic, even if it is old news.