What is the reason math.pow yields OverflowError while python itself
can
calculate these large numbers. e.g:
1e+308
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OverflowError: math range error
100000000000000 000000000000000 000000000000000 00000000000000
000000000000000 000000000000000 000000000000000 00000000000000
000000000000000 000000000000000 000000000000000 00000000000000
000000000000000 000000000000000 000000000000000 00000000000000
000000000000000 000000000000000 000000000000000 00000000000000
000000000000000 0L
can
calculate these large numbers. e.g:
>>import math
>>math.pow(10 0, 154)
>>math.pow(10 0, 154)
>>math.pow(10 0, 155)
File "<stdin>", line 1, in <module>
OverflowError: math range error
>>eval(('100* '* 155)[:-1])
000000000000000 000000000000000 000000000000000 00000000000000
000000000000000 000000000000000 000000000000000 00000000000000
000000000000000 000000000000000 000000000000000 00000000000000
000000000000000 000000000000000 000000000000000 00000000000000
000000000000000 0L
>>>
Comment