[Datetime-SIG] Another round on error-checking

Alexander Belopolsky alexander.belopolsky at gmail.com
Mon Aug 31 21:11:01 CEST 2015


On Mon, Aug 31, 2015 at 2:53 PM, Tim Peters <tim.peters at gmail.com> wrote:

> BTW, it just occurred to me that PEP 495 has already broken
> datetime.__hash__.  ...
>

The PEP did not and in the reference implementation, I am careful to reset
fold/first before computing the hash:

https://github.com/abalkin/cpython/blob/issue24773/Lib/datetime.py#L1178
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/datetime-sig/attachments/20150831/b3017e4a/attachment.html>


More information about the Datetime-SIG mailing list