MCPcopy Index your code
hub / github.com/python/cpython / X

Class X

Lib/test/test_dict.py:927–933  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

925 # This caused Segmentation faults or Illegal instructions.
926
927 class X(object):
928 def __hash__(self):
929 return 5
930 def __eq__(self, other):
931 if resizing:
932 d.clear()
933 return False
934 d = {}
935 resizing = False
936 d[X()] = 1

Calls

no outgoing calls