(self, p, cycle)
IPython pretty print hook.
IPython pretty print hook.
IPython pretty print hook .
def _repr_pretty_(self, p, cycle):
        """IPython pretty print hook."""
        module = self._reprable_module
        if module is True:
            module = self.__class__.__module__

        nameparts = (([str(module)] if module else []) +
                     [self.__class__.__name__])
        name = ".".join(nameparts)
        Reprable_repr_pretty(
            name, ((f, v) for f, _, v in self._reprable_items()),
            p, cycle)
def _repr_pretty_ ( self , p , cycle ) : module = self . _reprable_module if module is True : module = self . __class__ . __module__ nameparts = ( ( [ str ( module ) ] if module else [ ] ) + [ self . __class__ . __name__ ] ) name = "." . join ( nameparts ) Reprable_repr_pretty ( name , ( ( f , v ) for f , _ , v in self . _reprable_items ( ) ) , p , cycle )