mirror of
https://github.com/W3SLAV/micropython.git
synced 2025-06-20 12:35:34 -04:00

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
130 B
Python
7 lines
130 B
Python
# MicroPython doesn't support tuple argument
|
|
|
|
try:
|
|
"foobar".endswith(("bar", "sth"))
|
|
except TypeError:
|
|
print("TypeError")
|