<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 8, 2015 at 1:50 PM, 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"><div id=":1ly" class="a3s" style="overflow:hidden">I assumed you were showing an implementation of datetime.__eq__.  Yes?<br>
 In that case, `self` and `other` may both be naive on entry.  Then<br>
the first two lines effectively make exactly copies of them.  Since<br>
None is None, the `self.tzinfo is other.tzinfo` check succeeds, and so<br>
goes on to compare n_self to n_other - which are exact copies of the<br>
original inputs.  Lather, rinse, repeat.</div></blockquote></div><br>Got it.  No, I was not concerned with the naive case - I assumed that it was magically fulfilled without calling this __eq__ method.  If this idea passes a sniff test - I will implement it in my fork so that we can play with a working prototype. </div></div>