cascading python executions only if return code is 0

Grant Edwards invalid at invalid.invalid
Mon Dec 30 18:36:34 CET 2013

On 2013-12-27, Roy Smith <roy at> wrote:
> In article <mailman.4567.1387819120.18130.python-list at>,
>  Ethan Furman <ethan at> 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.

It's not that high (depending on where you're getting "second" from).
If the "second" is from the time of day, and the NTP daemon (or the
system admin) decides the clock needs a stepwise adjustment, the time
of day can go backwards.


More information about the Python-list mailing list