[issue17262] OrderedDict not ordering properly when int and float keys are used

2013-02-20 Thread Matthew Porter
New submission from Matthew Porter: I've got two lists: state_cns_list = [0.001, 1, 2, 5] state_names_list = [L, S, D, H] When I try to create an OrderedDict linking each state_cns_list entry with its corresponding state_names_list entry, like so: states = OrderedDict( {float(state_cns_list

[issue17262] OrderedDict not ordering properly when int and float keys are used

2013-02-20 Thread Matthew Porter
Matthew Porter added the comment: Ahh nevermind, just realized my error :P Sorry for the waste of internet space -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17262