- ret = {}
- for name in DEFAULT_STATS :
- ret[name] = getattr(stats, name)(l)
- return ret
+ results = []
+ for name, label in DEFAULT_STATS :
+ results.append('%s : %s' % (label, getattr(stats, name)(l)))
+ return '\n'.join(results)
+ computeList.__name__ = m.__name__
+ computeList.__doc__ = m.__doc__