(self, _repr_running={})
od.__repr__() <==> repr(od)
od.__repr__() <==> repr(od)
od . __repr__ () < == > repr ( od )
def __repr__(self, _repr_running={}):
        'od.__repr__() <==> repr(od)'
        call_key = id(self), _get_ident()
        if call_key in _repr_running:
            return '...'
        _repr_running[call_key] = 1
        try:
            if not self:
                return '%s()' % (self.__class__.__name__,)
            return '%s(%r)' % (self.__class__.__name__, self.items())
        finally:
            del _repr_running[call_key]
def __repr__ ( self , _repr_running = { } ) : call_key = id ( self ) , _get_ident ( ) if call_key in _repr_running : return '...' _repr_running [ call_key ] = 1 try : if not self : return '%s()' % ( self . __class__ . __name__ , ) return '%s(%r)' % ( self . __class__ . __name__ , self . items ( ) ) finally : del _repr_running [ call_key ]