https://code.google.com/p/mpmath/issues/detail?id=239
I have experienced the problem of pickling mpmath data with a python backend and trying to retrieve them with a gmp backend. This results in an error:
ValueError: invalid digits
This is in libmpf.py
and it is when this is called MPZ(man, 16)
as per the link if you substitute MPZ
with long
it no longer gives an error. Does anyone have any insight for this. It seems this was a hack that I'm hesitant to do.
What is the best practice solution to my problem?
thank you