[IronPython] Dictionary Ordering
Michael Foord
michael.foord at resolversystems.com
Wed May 17 15:35:39 CEST 2006
Hello all,
IronPython seems to default to have a dictionary 'ordering' based on key
insertion order.
This is nice, but differs from the CPython implementation. However the
spec (as I'm sure you're aware) says : (from
http://docs.python.org/lib/typesmapping.html )
Keys and values are listed in an arbitrary order which is
non-random, varies across Python
implementations, and depends on the dictionary's history of
insertions and deletions.
So IronPython behaviour is well within the spec. My question is, can we
rely on the ordered behaviour of IronPython ? (Or is it an
implementation detail that may change in future versions ?)
Michael Foord
http://www.resolversystems.com
More information about the Ironpython-users
mailing list