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

Antoine Pitrou solipsis at pitrou.net
Mon Nov 6 08:30:45 EST 2017


On Tue, 7 Nov 2017 00:14:35 +1100
Steven D'Aprano <steve at pearwood.info> wrote:
> 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?

That's not what I'm taking away from Paul Sokolovsky's message I was
responding to.  If you think otherwise then please expand and/or contact
Paul so that things are made clearer one way or the other.




More information about the Python-Dev mailing list