(self)
return "<%s[%s] (%s)>" % (self.name, channels, data)
x.__repr__() <==> repr(x)
x.__repr__() <==> repr(x)
x . __repr__ () < == > repr ( x )
def __repr__(self):
        "x.__repr__() <==> repr(x)"

        if len(self.channels) > 1:
            channels = repr(self.channels)
        elif len(self.channels) == 1:
            channels = str(self.channels[0])
        else:
            channels = ""

        data = "%s %s" % (
            ", ".join(repr(arg) for arg in self.args),
            ", ".join("%s=%s" % (k, repr(v)) for k, v in self.kwargs.items())
        )

        return "<%s[%s] (%s)>" % (self.name, channels, data)
def __repr__ ( self ) : if len ( self . channels ) > 1 : channels = repr ( self . channels ) elif len ( self . channels ) == 1 : channels = str ( self . channels [ 0 ] ) else : channels = "" data = "%s %s" % ( ", " . join ( repr ( arg ) for arg in self . args ) , ", " . join ( "%s=%s" % ( k , repr ( v ) ) for k , v in self . kwargs . items ( ) ) ) return "<%s[%s] (%s)>" % ( self . name , channels , data )