#NEWLINE# def __eq__( self , other ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return ( ( self . _version == other . _version ) and ( self . network_address == other . network_address ) and ( int ( self . netmask ) == int ( other . netmask ) ) ) #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# return NotImplemented