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

2013-02-20 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[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 ___ ___

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

2013-02-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: The dictionary you pass to the OrderedDict constructor has already lost the order you initialize it with. -- nosy: +benjamin.peterson resolution: -> invalid status: open -> closed ___ Python tracker

[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[i