News for hackers. Stuff that matters.
Re:Python Language Features and Tricks by nerfhammer on Saturday March 08, 2014 @01:53PM (#7365955)
more importantly it's wrong - the iteration order of .values() and .keys() is not guaranteed to be consistent
Re:Python Language Features and Tricks by davidwtbuxton on Saturday March 08, 2014 @02:37PM (#7366090)
The order of items in the dictionary isn't stable, but the order of .keys() is guaranteed to be the same as the order of .values() (as long as you don't modify the dict in between calling one then the other).

http://docs.python.org/2/library/stdtypes.html#dict.items