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

Class WackyComparator

Lib/test/test_sort.py:334–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332 # verifying ms->key_richcompare == tp->richcompare before comparing.
333
334 class WackyComparator(int):
335 def __lt__(self, other):
336 elem.__class__ = WackyList2
337 return int.__lt__(self, other)
338
339 class WackyList1(list):
340 pass

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…