On Mon, 29 Jun 2009 19:15:08 +0000, John Gordon wrote: >> > if time_difference < 3601: > >> That's a potential off-by-one error. [...] The right test is: > >> if time_difference <= 3600: > > Aren't those two comparisons the same?
Not if time_difference is a float. -- http://mail.python.org/mailman/listinfo/python-list