<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Sep 3, 2015 at 8:56 AM, Tim Peters <span dir="ltr"><<a href="mailto:tim.peters@gmail.com" target="_blank">tim.peters@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> And intentional or not, "classic" arithmetic may be easy to implement<br>
> and fast, but it is hard to explain, surprising, and not very useful.<br>
</span></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><snip><br>
</span></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> As to being hard to explain,<br>
you must be joking: </blockquote><div><br></div><div>sigh. Look at the length of this stinking thread! and how much confusion there was at the beginning about what the heck the current datetime implementation actually did. Classic arithmetic may well be the best possible solution given the constraints, but it is not obvious, clear, lacking in surprises or well documented ( and no one reads docs until they run into a problem)</div><div><br></div><div>I know I only got it when someone explained the implementation:</div><div><br></div><div>"remove the tzinfo object, do the math, tack the tzinfo back on"</div><div><br></div><div>Simple elegant, and now I get it. And get why things go wonky with datetimes with two different tzinfo objects.</div><div><br></div><div>By the way, something like that should be in the docs.</div><div><br></div><div>Anyway, clearly timeline math is an important use case for folks -- just as many (more?) than classic math. It would be nice to support it one way or another.</div><div><br></div><div>Which can have nothing to do with this PEP -- so carry one.</div><div><br></div><div>-Chris</div><div><br></div></div><div><br></div>-- <br><div class="gmail_signature"><br>Christopher Barker, Ph.D.<br>Oceanographer<br><br>Emergency Response Division<br>NOAA/NOS/OR&R (206) 526-6959 voice<br>7600 Sand Point Way NE (206) 526-6329 fax<br>Seattle, WA 98115 (206) 526-6317 main reception<br><br><a href="mailto:Chris.Barker@noaa.gov" target="_blank">Chris.Barker@noaa.gov</a></div>
</div></div>