micropython/tests/basics/module2.py

7 wiersze
133 B
Python
Czysty Zwykły widok Historia

# uPy behaviour only: builtin modules are read-only
import sys
try:
sys.x = 1
except AttributeError:
print("AttributeError")