#NEWLINE# def get_object_name( object ) : #NEWLINE# #INDENT# objtype = type ( object ) #NEWLINE# if ( objtype is str ) : #NEWLINE# #INDENT# return object #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( objtype is types . ModuleType ) or ( objtype is types . BuiltinFunctionType ) ) : #NEWLINE# #INDENT# return object . __name__ #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# print ( "get_object_name: can't determine object name" , file = sys . stderr ) #NEWLINE# return None