
Otherwise, it will silently get incorrect result on other values types, including CPython tuple form like "foo.png".endswith(("png", "jpg")) (which MicroPython doesn't support for unbloatedness).
7 lines
132 B
Python
7 lines
132 B
Python
# MicroPython doesn't support tuple argument
|
|
|
|
try:
|
|
"foobar".startswith(("foo", "sth"))
|
|
except TypeError:
|
|
print("TypeError")
|