INNER CODE UNIT · Python

__lt__

mpenning/ciscoconfparse · ciscoconfparse/ccp_abc.py:168

    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"""
        raise NotImplementedError()

    # On BaseCfgLine()
    @is_intf.setter
    @logger.catch(reraise=True)
    def is_intf(self, value):
        raise NotImplementedError()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…