John Machin <[EMAIL PROTECTED]> wrote: >Fredrik Lundh wrote: >> well, people tend to use dictionaries when they need to look things up >> quickly... >... like those paper dictionaries with the words in alphabetical order >:-)
... where you'll notice that the really big ones are divided up into buckets (which just happen to be keyed on initial letter). Truth is that humans are lot better than computers at general insertion sort, and its lookup equivalent, whereas computers are much better at calculating hashes. So we each use a dictionary implementation that plays to our strengths. -- \S -- [EMAIL PROTECTED] -- http://www.chaos.org.uk/~sion/ ___ | "Frankly I have no feelings towards penguins one way or the other" \X/ | -- Arthur C. Clarke her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump
-- http://mail.python.org/mailman/listinfo/python-list