schrodinger.utils.identitydict module¶
-
class
schrodinger.utils.identitydict.
IdentityDict
¶ Bases:
_abcoll.MutableMapping
,dict
An identity dict is a dictionary that uses the id of an object as the key instead of the hash. This means that two objects that compare equal but are different instances will be stored separately since id(obj1) != id(obj2).
NOTE: Using this dict with pythons builtin immutable datatypes is /strongly/ discouraged.
-
clear
()¶
-
has_key
(obj)¶
-
items
()¶
-
keys
()¶
-
setdefault
(key, default)¶
-
update
(other_dict)¶
-