def __eq__(self, other):
        """
        PythonModules with the same name are equal.
        """
        if not isinstance(other, PythonModule):
            return False
        return other.name == self.name

        PythonModules with the same name are equal.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/modules.py