#NEWLINE# def __contains__( self , other ) : #NEWLINE# #INDENT# if ( self . _version != other . _version ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# if isinstance ( other , _BaseNet ) : #NEWLINE# #INDENT# return ( ( self . network <= other . network ) and ( self . broadcast >= other . broadcast ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ( int ( self . network ) <= int ( other . _ip ) <= int ( self . broadcast ) )