Sort dictionary data

Lemniscate d_blade8 at hotmail.com
Tue May 21 18:59:36 EDT 2002


Hey, no mistakes here, just learning opportunities.  Stuff is always
20/20 in hindsight but who knows how long you may have wrestled with
the problem before figuring it out.  :)

Lem

Dialtone <dialtone#/N0SPAM/#@aruba.it> wrote in message news:<uvckeu4oaooeapcabqludipkoo0k5a46sf at 4ax.com>...
> On 20 May 2002 15:54:24 -0700, d_blade8 at hotmail.com (Lemniscate) wrote:
> 
> >
> >This way you can loop over them (you can get the illusion of sorting a
> >dictionary by key by doing this with a list from myDict.keys(),
> >sorting the list and then going through each one with a call to the
> >values.  Anyways, have fun.
> 
> yup you're right... Sorry my mistake. I'm just learning python and I forgot
> this... Need new reading :)



More information about the Python-list mailing list