[pypy-commit] pypy all_ordered_dicts: Make all dictionaries be ordered by default.

ltratt noreply at buildbot.pypy.org
Tue Dec 16 17:28:49 CET 2014


Author: Laurence Tratt <laurie at tratt.net>
Branch: all_ordered_dicts
Changeset: r74956:91b77ba66c70
Date: 2014-12-16 14:48 +0000
http://bitbucket.org/pypy/pypy/changeset/91b77ba66c70/

Log:	Make all dictionaries be ordered by default.

	This could be done in a less ugly way in the long term.

diff --git a/rpython/annotator/model.py b/rpython/annotator/model.py
--- a/rpython/annotator/model.py
+++ b/rpython/annotator/model.py
@@ -389,6 +389,8 @@
         assert isinstance(dct2, SomeOrderedDict), "OrderedDict.update(dict) not allowed"
         dct1.dictdef.union(dct2.dictdef)
 
+SomeDict=SomeOrderedDict
+
 
 class SomeIterator(SomeObject):
     "Stands for an iterator returning objects from a given container."


More information about the pypy-commit mailing list