I know that namedtuple is a factory function to create classes with immutable data fields. I'm assuming they are hashable so that they can be used in sets. My worry is if there are any gotchas associated with using namedtuples in sets. e.g. are there issues if there are nested namedtuples?