micropython/tests/basics/builtin_dir.py

10 lines
122 B
Python
Raw Normal View History

# test builtin dir
# dir of locals
print('__name__' in dir())
# dir of module
import sys
print('platform' in dir(sys))