You don't have to think about it, it should just work. Most types are hashable (notable exceptions are strings and dictionaries).