[Tutor] Keeping Dictonary Entries Ordered

Senthil Kumaran orsenthil at gmail.com
Thu Feb 12 10:54:00 CET 2009


On Thu, Feb 12, 2009 at 2:55 PM, Alan Gauld <alan.gauld at btinternet.com> wrote:
> But you need to have an order that will work with sorted().
> Its not just the order you add items to the dict.


And yes algorithmically, there is No Requirement or I should say a
good Use Case for a Dict to have sorted keys. More we work with
dictionaries. we will understand this rationale better.


-- 
Senthil


More information about the Tutor mailing list