#NEWLINE# def register_descriptor( class_ , key , comparator = None , parententity = None , doc = None ) : #NEWLINE# #INDENT# manager = manager_of_class ( class_ ) #NEWLINE# descriptor = InstrumentedAttribute ( class_ , key , comparator = comparator , parententity = parententity ) #NEWLINE# descriptor . __doc__ = doc #NEWLINE# manager . instrument_attribute ( key , descriptor ) #NEWLINE# return descriptor