Message 150748 - Python tracker (original) (raw)
STINNER Victor wrote:
STINNER Victor <victor.stinner@haypocalc.com> added the comment:
hash-attack.patch does never decrement the collision counter.
Why should it ? It's only used as local variable in the lookup function.
Note that the limit only triggers on a per-key basis. It's not a limit on the total number of collisions in the table, so you don't need to keep the number of collisions stored on the object.