A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-May/014991.html below:

[Python-Dev] Assertion failed in dictobject.c

[Python-Dev] Assertion failed in dictobject.c [Python-Dev] Assertion failed in dictobject.cTim 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.




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4