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).crypto-aes
parent
c5c095690f
commit
37379a2974
@ -0,0 +1,6 @@
|
||||
# MicroPython doesn't support tuple argument
|
||||
|
||||
try:
|
||||
"foobar".endswith(("bar", "sth"))
|
||||
except TypeError:
|
||||
print("TypeError")
|
@ -0,0 +1 @@
|
||||
TypeError
|
@ -0,0 +1,6 @@
|
||||
# MicroPython doesn't support tuple argument
|
||||
|
||||
try:
|
||||
"foobar".startswith(("foo", "sth"))
|
||||
except TypeError:
|
||||
print("TypeError")
|
@ -0,0 +1 @@
|
||||
TypeError
|
Loading…
Reference in new issue