Roy Smith wrote: > In article <[email protected]>, > Ethan Furman <[email protected]> wrote: > >> Mostly I don't want newbies thinking "Hey! I can use assertions for all >> my confidence testing!" > > How about this one, that I wrote yesterday; > > assert second >= self.current_second, "time went backwards" > > I think that's pretty high up on the "can never happen" list.
Time goes backwards by one hour[1] at least once a year across most of the world. http://infiniteundo.com/post/25509354022/more-falsehoods-programmers-believe-about-time-wisdom [1] Unless it's less than an hour. Or more than one hour. -- Steven -- https://mail.python.org/mailman/listinfo/python-list
