Message287609
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. |
|
Date |
User |
Action |
Args |
2017-02-11 16:06:01 | christian.heimes | set | recipients:
+ christian.heimes, lemburg, arigo |
2017-02-11 16:06:01 | christian.heimes | set | messageid: <1486829161.81.0.529505076768.issue29535@psf.upfronthosting.co.za> |
2017-02-11 16:06:01 | christian.heimes | link | issue29535 messages |
2017-02-11 16:06:01 | christian.heimes | create | |
|