Greg Ewing <greg@cosc.canterbury.ac.nz> writes: > It occurs to me that what you really want here is a special > kind of dictionary that uses "is" instead of "==" to compare > key values. > > Or is that what was meant by an "identity dictionary"? Yes; that would be a dictionary that uses identity instead of equality. Regards, Martin