This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients arigo, christian.heimes, lemburg
Date 2017-02-11.16:06:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1486829161.81.0.529505076768.issue29535@psf.upfronthosting.co.za>
In-reply-to
Content
I only checked Python 2.7. For Python 3.x it's a bit more complicated:

timedelta: PyObject_Hash(), always the same hash value
date: _Py_HashBytes(), always a randomized hash value
time: _Py_HashBytes() for offset = None, PyObject_Hash() for offset != 0
datetime: _Py_HashBytes() for offset = None, PyObject_Hash() for offset != 0
timezone: PyObject_Hash() (inherited from object)

I don't know why the datetime module doesn't use hash randomization for datetime and time objects with an offset. MAL is the master of (date)time. He might know.
History
Date User Action Args
2017-02-11 16:06:01christian.heimessetrecipients: + christian.heimes, lemburg, arigo
2017-02-11 16:06:01christian.heimessetmessageid: <1486829161.81.0.529505076768.issue29535@psf.upfronthosting.co.za>
2017-02-11 16:06:01christian.heimeslinkissue29535 messages
2017-02-11 16:06:01christian.heimescreate