micropython/tests/basics/special_methods_intbig.py

9 wiersze
124 B
Python

# Test class special methods, that use a bigint.
class A:
def __int__(self):
return 1 << 100
print(int(A()))