(self)
return self._ipversion
Return the IP version of this Object.

        >>> IP('10.0.0.0/8').version()
        4
        >>> IP('::1').version()
        6
Return the IP version of this Object.
Return the IP version of this Object .
def version(self):
        """Return the IP version of this Object.

        >>> IP('10.0.0.0/8').version()
        4
        >>> IP('::1').version()
        6
        """
        return self._ipversion
def version ( self ) : return self . _ipversion