Logo Search packages:      
Sourcecode: virt-manager version File versions  Download package

def virtManager::IPy::IPint::__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.

Definition at line 609 of file IPy.py.

00609                      :
        """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 __getitem__(self, key):


Generated by  Doxygen 1.6.0   Back to index