def f(i): d = {i + .5: 42, i + .6: -612} delitem_with_hash(d, i + .5, compute_hash(i + .5)) try: delitem_with_hash(d, i + .5, compute_hash(i + .5)) except KeyError: pass else: raise AssertionError return 0