#NEWLINE# def __repr__( self , _repr_running = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) : #NEWLINE# #INDENT# 'od.__repr__() <==> repr(od)' #NEWLINE# call_key = ( id ( self ) , _get_ident ( ) ) #NEWLINE# if ( call_key in _repr_running ) : #NEWLINE# #INDENT# return '...' #NEWLINE# #UNINDENT# _repr_running [ call_key ] = 1 #NEWLINE# try : #NEWLINE# #INDENT# if ( not self ) : #NEWLINE# #INDENT# return '{0}()' . format ( self . __class__ . __name__ ) #NEWLINE# #UNINDENT# return "{0}('{1}')" . format ( self . __class__ . __name__ , list ( self . items ( ) ) ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# del _repr_running [ call_key ]