In the documentation of mpmath library page 8 it mentioned that
There is no restriction on the magnitude of numbers
>>> print(mpf(2)**32582657 - 1)
1.24575026015369e+9808357
and I checked that this code did work. However, in the same script I found that
mp.mpf(1e309)
mpf('+inf')
Is this a bug? How to set mpmath library to arbitrary magnitude of number?