#NEWLINE# def __eq__( self , other ) : #NEWLINE# #INDENT# if isinstance ( other , DBRef ) : #NEWLINE# #INDENT# us = ( self . __database , self . __collection , self . __id , self . __kwargs ) #NEWLINE# them = ( other . __database , them . __collection , other . __id , other . __kwargs ) #NEWLINE# return ( us == them ) #NEWLINE# #UNINDENT# return NotImplemented