You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
19 lines
323 B
Python
19 lines
323 B
Python
# test attributes of builtin range type
|
|
|
|
try:
|
|
range(0).start
|
|
except AttributeError:
|
|
print("SKIP")
|
|
raise SystemExit
|
|
|
|
# attrs
|
|
print(range(1, 2, 3).start)
|
|
print(range(1, 2, 3).stop)
|
|
print(range(1, 2, 3).step)
|
|
|
|
# bad attr (can't store)
|
|
try:
|
|
range(4).start = 0
|
|
except AttributeError:
|
|
print('AttributeError')
|