summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/builtin_help.py
blob: d554f308d99b00e1beb618e655dfab46d64b806b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# test builtin help function

try:
    help
except NameError:
    print("SKIP")
    import sys
    sys.exit()

help() # no args
help(help) # help for a function
help(int) # help for a class
help(1) # help for an instance
import micropython
help(micropython) # help for a module
help('modules') # list available modules

print('done') # so last bit of output is predictable