fork download
  1.  
  2. import heapq
  3.  
  4. def _dummy_func(x, y):
  5. # should at least print out something
  6. print(x, y)
  7. return x < y
  8.  
  9. heapq.cmp_lt = _dummy_func
  10.  
  11. heap = [3, 2, 1]
  12.  
  13. heapq.heapify(heap)
  14.  
Success #stdin #stdout 0s 9024KB
stdin
Standard input is empty
stdout
Standard output is empty