[Python-Dev] Assertion failed in dictobject.c
Tim Peters
tim.one@home.com
Wed, 23 May 2001 17:02:17 -0400
[Jack Jansen]
> I'm seeing the assert on line 525 in dictobject.c (revision 2.92)
> failing. The debugger tells me that ma_fill and ma_size are both 8.
> ma_used is 2, and interestingly hash is also 8.
[Tim]
> You wouldn't happen to have a reproducible test case?
Nevermind; I do:
d = {}
for i in range(5):
d[i] = i
for i in range(5):
del d[i]
for i in range(5, 9): # assert triggers when i == 8
d[i] = i
The cure is more complicated than I described, though.