News for hackers. Stuff that matters.
Re:Removing Python 2.x support from Django for version 2.0 by Buttons840 on Thursday January 19, 2017 @12:02PM (#13437301)
> Dictionaries with guaranteed ordering.

I don't think you're suppose to depend on the ordering of dictionaries. It's an implementation detail which might get changed, although it wont actually ever be changed because people will come to depend on it.

Re:Removing Python 2.x support from Django for version 2.0 by bmh100 on Thursday January 19, 2017 @01:05PM (#13437870)
I'm specifically referring to OrderedDict in this case, which does have guaranteed, insertion-based ordering. It was introduced in 3.1, circa 2009, via PEP 372.
Re:Removing Python 2.x support from Django for version 2.0 by wolf550e on Thursday January 19, 2017 @01:20PM (#13438033)
Re:Removing Python 2.x support from Django for version 2.0 by bmh100 on Thursday January 19, 2017 @01:26PM (#13438090)
That's a good point. I didn't realize that it was also introduced into 2.7 at the same time.
Re:Removing Python 2.x support from Django for version 2.0 by thecardcheat on Thursday January 19, 2017 @12:16PM (#13437403)
> I don't think you're suppose to depend on the ordering of dictionaries. It's an implementation detail which might get changed, although it wont actually ever be changed because people will come to depend on it.

I came here to make the same distinction - though I will say I hope you are wrong about people coming to depend on it when OrdereredDict is still there for a reason. The docs still plainly state that Dict should be considered un-ordered and do not make mention of this implementation detail (nor should they).