INNER CODE UNIT · Python

index

mpenning/ciscoconfparse · ciscoconfparse/ccp_abc.py:231

    def index(self):
        """Alias index to linenum"""
        return self.linenum

    # On BaseCfgLine()
    @logger.catch(reraise=True)
    def calculate_line_id(self):
        """
        Calculate and return an integer line_id for BaseCfgLine()

        The `hash()` of `self.text` is used to build a numerical identity
        for a given BaseCfgLine().

        Do NOT cache this value.  It must be recalculated when self._text
        changes.
        """
        indent = self.indent

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…