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