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

try:
    help
except NameError:
    print("SKIP")
    raise SystemExit

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