-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuheapq.py
42 lines (33 loc) · 909 Bytes
/
uheapq.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
"""
Module: 'uheapq' on esp32 1.11.0
"""
# MCU: (sysname='esp32', nodename='esp32', release='1.11.0', version='v1.11-580-g973f68780 on 2019-11-17', machine='ESP32 module with ESP32')
# Stubber: 1.3.2
def heapify(x):
"""
Convert the list x into a heap. This is an in-place operation.
Parameters
----------
- x :
http://docs.micropython.org/en/latest/library/uheapq.html#uheapq.heapify
"""
pass
def heappop(heap):
"""
Pop the first item from the heap, and return it. Raises IndexError if heap is empty.
Parameters
----------
- heap :
http://docs.micropython.org/en/latest/library/uheapq.html#uheapq.heappop
"""
pass
def heappush(heap, item):
"""
Push the item onto the heap.
Parameters
----------
- heap :
- item :
http://docs.micropython.org/en/latest/library/uheapq.html#uheapq.heappush
"""
pass