How to sort using hash's key?

Cliff Wells cliff at develix.com
Wed Jan 31 18:14:10 EST 2007


On Thu, 2007-02-01 at 04:54 +0800, JoJo wrote:

> I want to sort a dict via its key,but I have no idea on how to do it.
> Please help me,thanks.

You can't.  There is, however, a recipe for an "ordered dict" on ASPN:

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/438823


> 3webXS HiSpeed Dial-up...surf up to 5x faster than regular dial-up alone... 
> just $14.90/mo...visit www.get3web.com for details

You pay $15/mo for dialup???

Regards,
Cliff




More information about the Python-list mailing list