4 ms·
Really interesting about the internals of python! One of the first things the professor of my python class told us is that python dictionaries don't guarantee
by civilian 13y ago
Really interesting about the internals of python!
One of the first things the professor of my python class told us is that python dictionaries don't guarantee any order. So that's just always been in mind. It almost seems like a PHP-ism to assume that a dictionary would provide that. Understand thy data-types!
# edit: And yeah-- I don't know why the stackoverflow link was the place to go. I don't like "RTFM" culture, but it was right there: http://docs.python.org/2/tutorial/datastructures.html#dictionaries http://docs.python.org/2/tutorial/datastructures.html#dictio...
and also here in the book I learned python from: http://www.greenteapress.com/thinkpython/html/thinkpython012.html http://www.greenteapress.com/thinkpython/html/thinkpython012...