def __repr__(self):
        """Customize repr to show option args and kwargs."""
        args = ', '.join(self.args)
        kwrgs = ', '.join(['%s=%s' % (k, v) for k, v in self.kwargs.items()])
        rpr = 'Option(%s' % args
        if kwrgs:
            rpr = '%s, %s' % (rpr, kwrgs)
        rpr = '%s)' % rpr
        return rpr
def __repr__ ( self ) : args = ', ' . join ( self . args ) kwrgs = ', ' . join ( [ '%s=%s' % ( k , v ) for k , v in self . kwargs . items ( ) ] ) rpr = 'Option(%s' % args if kwrgs : rpr = '%s, %s' % ( rpr , kwrgs ) rpr = '%s)' % rpr return rpr
Customize repr to show option args and kwargs.