<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 31, 2015 at 2:53 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: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=":1ui" class="" style="overflow:hidden">BTW, it just occurred to me that PEP 495 has already broken<br>
datetime.__hash__. ...<br></div></blockquote><div><br></div><div>The PEP did not and in the reference implementation, I am careful to reset fold/first before computing the hash:</div><div><br></div><div><a href="https://github.com/abalkin/cpython/blob/issue24773/Lib/datetime.py#L1178">https://github.com/abalkin/cpython/blob/issue24773/Lib/datetime.py#L1178</a><br></div></div><br><br></div></div>