circuitpython/tests/basics/special_methods_intbig.py

9 lines
124 B
Python

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