(self, stat)
return stat_copy
Returns a copy of `stat` with `self.name` prepended to `stat.name`.
Returns a copy of `stat` with `self.name` prepended to `stat.name`.
Returns a copy of stat with self . name prepended to stat . name .
def _prepend_name(self, stat):
    """Returns a copy of `stat` with `self.name` prepended to `stat.name`."""
    if not isinstance(stat, statistics.Statistic):
      raise InvalidStatisticsError(
          'Expecting Statistic object, got %s' % stat)
    stat_copy = stat.copy()
    stat_copy.name = self._name + '_' + stat_copy.name
    return stat_copy
def _prepend_name ( self , stat ) : if not isinstance ( stat , statistics . Statistic ) : raise InvalidStatisticsError ( 'Expecting Statistic object, got %s' % stat ) stat_copy = stat . copy ( ) stat_copy . name = self . _name + '_' + stat_copy . name return stat_copy