mirror of
https://github.com/licsber/micropython.git
synced 2024-09-21 17:40:24 +08:00
10 lines
117 B
Python
10 lines
117 B
Python
|
class Foo:
|
||
|
|
||
|
def __radd__(self, other):
|
||
|
pass
|
||
|
|
||
|
try:
|
||
|
5 + Foo()
|
||
|
except TypeError:
|
||
|
print("TypeError")
|