(self, oth)
return oth.domain == self.domain and oth.codomain == self.codomain
Helper to check that oth is a homomorphism with same domain/codomain.
Helper to check that oth is a homomorphism with same domain/codomain.
Helper to check that oth is a homomorphism with same domain / codomain .
def _check_hom(self, oth):
        """Helper to check that oth is a homomorphism with same domain/codomain."""
        if not isinstance(oth, ModuleHomomorphism):
            return False
        return oth.domain == self.domain and oth.codomain == self.codomain
def _check_hom ( self , oth ) : if not isinstance ( oth , ModuleHomomorphism ) : return False return oth . domain == self . domain and oth . codomain == self . codomain