What are some other way to rewrite this if block?

Chris Angelico rosuav at gmail.com
Mon Mar 18 16:24:52 CET 2013


On Tue, Mar 19, 2013 at 2:10 AM, Steven D'Aprano
<steve+comp.lang.python at pearwood.info> wrote:
> A third weakness is that you can't allow for arrivals more than 12 hours
> early or late.

Oh, but that'll NEVER happen.

Oh wait, I've been on a service that was 12 hours late.

Is there any chance that you could do your times of arrival and
expectation in, say, integer seconds since 1970?

ChrisA



More information about the Python-list mailing list