def __eq__(self, other):
        """
        Allow rich equality comparison with another L{SerialNumber} instance.

        @type other: L{SerialNumber}
        """
        other = self._convertOther(other)
        return other._number == self._number

        Allow rich equality comparison with another L{SerialNumber} instance.

        @type other: L{SerialNumber}
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/names/_rfc1982.py