[Python-Dev] Guarantee ordered dict literals in v3.7?

Steven D'Aprano steve at pearwood.info
Mon Nov 6 08:14:35 EST 2017


On Mon, Nov 06, 2017 at 12:27:54PM +0100, Antoine Pitrou wrote:

> The ordered-ness of dicts could instead become one of those stable
> CPython implementation details, such as the fact that resources are
> cleaned up timely by reference counting, that people nevertheless
> should not rely on if they're writing portable code.

Given that (according to others) none of IronPython, Jython, Batavia, 
Nuitka, or even MicroPython, should have trouble implementing an 
insertion-order preserving dict, and that PyPy already has, why should 
we say it is a CPython implementation detail?


-- 
Steve


More information about the Python-Dev mailing list