On 2013-02-15 16:17, Neil Cerutti wrote:
On 2013-02-15, Oscar Benjamin <[email protected]> wrote:if score > best_score or best_score is None:You need the None check first to avoid an exception from the comparison.
Only in Python 3.
if best_score is None or score > best_score:
-- http://mail.python.org/mailman/listinfo/python-list
