Sergey B Kirpichev
Sergey B Kirpichev
> That is different from the way that contexts work in gmpy2 or decimal but is arguably better. I'm not sure. Because we have functions in the global mpmath namespace,...
> Adding an alternate interface for creating contexts can be done without breaking compatibility. At the same time a new interface can make other changes such as by returning an...
> Many functions do not alter the context e.g. the libmp functions are all pure. This is relatively low-level stuff. See #178 for some plans to replace mpf_/mpc_ layers with...
> That discussion looks a little dated now. Yes, and I thank you for your feedback in #178. Yet it seems relevant as some comment on historical code changes and...
@casevh, the https://gmpy2.readthedocs.org/en/latest/ - still not up to date, but this issue isn't relevant.
BTW, the mpz.to_bytes() (or to_binary) is systematically slower than int.to_bytes(). Here is a simple benchmark:  Code: ```python # a.py from gmpy2 import mpz, to_binary import sys import random import...
@sfornengo, could you try new to_bytes() method? It should be slightly faster than ``int(x).to_bytes()`` equivalent. E.g.: ``` $ python -m timeit -r11 -s 'from gmpy2 import fac;a=fac(100)' 'int(a).to_bytes(66)' 200000 loops,...
@dimpase, see aleaxit/gmpy#447 @casevh, at least mentioned issue should be solved.
> It should run with py -3.10 runtests.py but it fails for me. Here is how it works in our CI workflow: https://github.com/aleaxit/gmpy/blob/831782a16696390af037491c7c91c752c7e49c9a/.github/workflows/pip_install_gmpy2.yml#L104-L107 As you can see, cython tests are...
@fangchenli, unfortunately, there are test failures (mostly/all? related to range function vs kwarg conflict), please fix this. See also previous attempt #597. I think, you left some obsolete stuff (e.g....