]> granicus.if.org Git - python/commit
Issue #29140: Fix hash(datetime.time)
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 3 Jan 2017 22:47:12 +0000 (23:47 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 3 Jan 2017 22:47:12 +0000 (23:47 +0100)
commit423c16b4c3454c8d8c4091ffb4538394a02c75d5
tree6b2e76e0f4391804502818b3f3e7ce865faaec98
parent8d979d576e123c03f0bb92aeb8043b8d7aa57cf7
Issue #29140: Fix hash(datetime.time)

Fix time_hash() function: replace DATE_xxx() macros with TIME_xxx() macros.
Before, the hash function used a wrong value for microseconds if fold is set
(equal to 1).
Modules/_datetimemodule.c