(self)
return int(self.len())
Return the length of an subnet.

        Called to implement the built-in function len().
        It breaks with IPv6 Networks. Anybody knows how to fix this.
Return the length of an subnet.
Return the length of an subnet .
def __len__(self):
        """Return the length of an subnet.

        Called to implement the built-in function len().
        It breaks with IPv6 Networks. Anybody knows how to fix this."""

        # Python < 2.2 has this silly restriction which breaks IPv6
        # how about Python >= 2.2 ... ouch - it presists!

        return int(self.len())
def __len__ ( self ) : # Python < 2.2 has this silly restriction which breaks IPv6 # how about Python >= 2.2 ... ouch - it presists! return int ( self . len ( ) )