components.Score¶
- class components.Score(answers=0, correct=0, member=None)¶
Bases:
objectA single score count. Scores are comparable, i.e.
score_1 == score_2if and only if theanswersandcorrectattributes are equal. Moreover, scores can be evaluated as boolean, wherebool(score) == Trueifanswersis greater than zero. Finally, scores are ordered:score_1 < score_2, ifscore_1has a smallerratiothan score_2, or, if the ratios coincide, has fewer recorded answers.- Parameters