Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
Closed
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump
Description
Bug report
Bug description:
importcollectionsglobalcountcount=0classEvil(): def__eq__(self, other): globalcountprint(count) ifcount==1: l.clear() print("cleared l") count+=1returnTruedef__hash__(self): return3l=collections.OrderedDict({Evil(): 4, 5: 6}) r=collections.OrderedDict({Evil(): 4, 5: 6}) print(l==r)CPython versions tested on:
3.10, 3.13
Operating systems tested on:
Linux
Linked PRs
Metadata
Metadata
Assignees
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump