[issue29535] datetime hash is deterministic in some cases
Raymond Hettinger
report at bugs.python.org
Mon Jun 5 00:58:10 EDT 2017
Raymond Hettinger added the comment:
Rather than changing the documentation, I would prefer to have this fixed for date/time/datetiem unless MAL has a reason not to make the change.
For timezone, I don't think we really care.
For timedelta, it is reasonable to always be the same hash. It isn't conceptually different from the float given by s.total_seconds() or a tuple of (days, seconds, microseconds).
----------
nosy: +rhettinger
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29535>
_______________________________________
More information about the Python-bugs-list
mailing list