INNER CODE UNIT · Python

BaseIdentifier

netaddr/netaddr · netaddr/eui/__init__.py:19

class BaseIdentifier(object):
    """Base class for all IEEE identifiers."""

    __slots__ = ('_value', '__weakref__')

    def __init__(self):
        self._value = None

    def __int__(self):
        """:return: integer value of this identifier"""
        return self._value

    def __index__(self):
        """
        :return: return the integer value of this identifier.
        """
        return self._value

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…