2017-01-21 19:49:08 -05:00
|
|
|
# test builtin help function
|
|
|
|
|
|
|
|
try:
|
|
|
|
help
|
|
|
|
except NameError:
|
|
|
|
print("SKIP")
|
2017-06-10 13:03:01 -04:00
|
|
|
raise SystemExit
|
2017-01-21 19:49:08 -05:00
|
|
|
|
|
|
|
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
|
2017-01-21 20:14:56 -05:00
|
|
|
help('modules') # list available modules
|
2017-01-21 19:49:08 -05:00
|
|
|
|
|
|
|
print('done') # so last bit of output is predictable
|