[pypy-issue] [issue1060] datetime.utcfromtimestamp creates datetime objects which crash in __hash__

David Ripton tracker at bugs.pypy.org
Fri Feb 17 04:24:53 CET 2012


David Ripton <d+pypy at ripton.net> added the comment:

Verified.  On x86 Linux:

$ ./pypy-c 
Python 2.7.2 (59a514e97b66, Feb 17 2012, 00:59:22)
[PyPy 1.8.1-dev0 with GCC 4.5.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``random bugs in random (not a
funny joke)''
>>>> from datetime import datetime
>>>> x = datetime.utcfromtimestamp(123456789.0)
>>>> hash(x)
-1642555841

----------
status: chatting -> resolved

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1060>
________________________________________


More information about the pypy-issue mailing list