mirror of
https://github.com/licsber/micropython.git
synced 2024-09-20 09:00:23 +08:00
13 lines
194 B
Python
13 lines
194 B
Python
|
# Test parsing ints.
|
||
|
|
||
|
try:
|
||
|
bytearray
|
||
|
memoryview
|
||
|
except NameError:
|
||
|
print("SKIP")
|
||
|
raise SystemExit
|
||
|
|
||
|
print(int(b"123"))
|
||
|
print(int(bytearray(b"123")))
|
||
|
print(int(memoryview(b"123")))
|