> You could keep a separate dictionary mapping each > "canonical" value to itself, and use that for > normalising things before looking up the main > dictionary. That's what intern() does. Can't he just call intern()? Or does he want the *uninterned* version of the key back? Why on earth? --Guido van Rossum (home page: http://www.python.org/~guido/)