

@cached_property
def _get_average(self):
    s = self.scores
    return (float(reduce((lambda n1, n2: (n1 + n2)), s, 0)) / len(s))

dataset/ETHPy150Open enthought/traits/examples/tutorials/doc_examples/examples/cached_prop.py TestScores._get_average/original