<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 5, 2014 at 6:10 PM, Donald Stufft <span dir="ltr"><<a href="mailto:donald@stufft.io" target="_blank">donald@stufft.io</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id=":2oe" class="" style="overflow:hidden">And yet 0 is False not because it starts the positive real numbers (not sure<br>
what that has to do with a value in an integer type) but because it signifies<br>
an empty or zero magnitude object.</div></blockquote></div><br>No. It is False because it equals False:</div><div class="gmail_extra"><br></div><div class="gmail_extra">>>> 0 == False</div><div class="gmail_extra">
True </div><div class="gmail_extra"><br></div><div class="gmail_extra">Numbers are not containers. You cannot tell whether a number is empty or not. Python interpretation of numbers in boolean context is different from that of containers.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">I think the disagreement stems from different view on what time-of-day is. For me, it is the fraction of the day that passed or distance from midnight and in any case fundamentally some kind of number expressed in a Babylonian base-60 notation.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">I think proponents of bool(time(0)) == True view it as a container of hours, minutes and seconds. </div></div>