Hacker News new | past | comments | ask | show | jobs | submit login
PyPy v7.2 Released (morepypy.blogspot.com)
5 points by bratao on Oct 19, 2019 | hide | past | favorite | 3 comments



I am waiting 3.7 compatibility for dict insertion order which I rely in my last project. I know I could use workarounds but now it is safe and stable and I am not in a hurry. Until then waiting in CPython.


Isn't it explicitly discouraged to rely on dict() being ordered? IIRC the Python standard (if it exists) has collections.OrderedDict() in mind to fulfill ordering. I think when CPython introduced ordering, they warned about that. [No references included, happy if somebody provides some]


Yes it was discouraged previously. It became an implementation detail in 3.6 but is wasn't guaranteed. But now it is guaranteed in version 3.7:

> Changed in version 3.7: Dictionary order is guaranteed to be insertion order. This behavior was an implementation detail of CPython from 3.6. [0]

[0] https://docs.python.org/3.7/library/stdtypes.html#typesmappi...




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: