INNER CODE UNIT · Python

__gt__

mpenning/ciscoconfparse · ciscoconfparse/ccp_abc.py:161

    def __gt__(self, val):
        if self.linenum > val.linenum:
            return True
        return False

    # On BaseCfgLine()
    @logger.catch(reraise=True)
    def __lt__(self, val):
        # Ref: http://stackoverflow.com/a/7152796/667301
        if self.linenum < val.linenum:
            return True
        return False

    # On BaseCfgLine()
    @property
    @logger.catch(reraise=True)
    def is_intf(self):
        """subclasses will override this method"""

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…