On Apr 20, 1:03 pm, Menghan Zheng <menghan...@gmail.com> wrote: > Is it assured the following statement is always True? > If it is always True, in which version, python2.x or python3.x?
I believe its an implementation detail and should not be relied on. If you need consistent ordering, use an OrderedDict[1] or sort() the lists beforehand. -- http://mail.python.org/mailman/listinfo/python-list