hwt/hdl/switchContainer.py
def isSame(self, other: HdlStatement) -> bool:
        """
        Doc on parent class :meth:`HdlStatement.isSame`
        """
        if self is other:
            return True

        if self.rank != other.rank:
            return False

        if isinstance(other, SwitchContainer) \
                and isSameHVal(self.switchOn, other.switchOn)\
                and len(self.cases) == len(other.cases)\
                and isSameStatementList(self.default, other.default):
            for (ac, astm), (bc, bstm) in zip(self.cases, other.cases):
                if not isSameHVal(ac, bc)\
                        or not isSameStatementList(astm, bstm):
                    return False
            return True
        return False
def isSame(self, other: HdlStatement) -> bool:
        """
        Doc on parent class :meth:`HdlStatement.isSame`
        """
        if self is other:
            return True

        if self.rank != other.rank:
            return False

        if isinstance(other, SwitchContainer) \
                and isSameHVal(self.switchOn, other.switchOn)\
                and len(self.cases) == len(other.cases)\
                and isSameStatementList(self.default, other.default):
            for (ac, astm), (bc, bstm) in zip(self.cases, other.cases):
                if not isSameHVal(ac, bc)\
                        or not isSameStatementList(astm, bstm):
                    return False
            return True
        return False
def isSame ( self , other : HdlStatement ) -> bool : if self is other : return True if self . rank != other . rank : return False if isinstance ( other , SwitchContainer ) and isSameHVal ( self . switchOn , other . switchOn ) and len ( self . cases ) == len ( other . cases ) and isSameStatementList ( self . default , other . default ) : for ( ac , astm ) , ( bc , bstm ) in zip ( self . cases , other . cases ) : if not isSameHVal ( ac , bc ) or not isSameStatementList ( astm , bstm ) : return False return True return False
Doc on parent class :meth:`HdlStatement.isSame`
Doc on parent class : meth : HdlStatement . isSame