drone-micropython-raw 0.1.1

Bindings to MicroPython.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# test builtin sorted
try:
    sorted
    set
except:
    print("SKIP")
    raise SystemExit

print(sorted(set(range(100))))
print(sorted(set(range(100)), key=lambda x: x + 100*(x % 2)))

# need to use keyword argument
try:
    sorted([], None)
except TypeError:
    print("TypeError")