gmpy icon indicating copy to clipboard operation
gmpy copied to clipboard

General Multi-Precision arithmetic for Python 2.6+/3+ (GMP, MPIR, MPFR, MPC)

Results 73 gmpy issues
Sort by recently updated
recently updated
newest added

Hello gmpy! :wave: Linux distros are already patching Python 3.12 support into 2.1.5, e.g. Gentoo and Void apply patch https://raw.githubusercontent.com/tornaria/void-packages/722b32aa405804b79a74256708de6a511e255b4b/srcpkgs/python3-gmpy2/patches/cleanup-object-caching.patch downstream to unblock Python 3.12. `pip install gmpy2` remains broken...

``` In file included from src/gmpy2.c:605: src/gmpy2_convert_gmp.c: In function ‘GMPy_MPZ_From_PyIntOrLong’: src/gmpy2_convert_gmp.c:64:48: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’ 64 | mpz_set_si(result->z, -(sdigit)templong->ob_digit[0]); | ^~ src/gmpy2_convert_gmp.c:70:39: error: ‘PyLongObject’...

I would like to release version 2.2.0a2 tomorrow. I have tagged the 2.2.0a2 code and uploaded a subset of the binary wheels to https://github.com/aleaxit/gmpy/releases/tag/gmpy2-2.2.0a2 Please test any of the subset...

Hello gmpy! :wave: Release [gmpy2 2.2.0a2](https://github.com/aleaxit/gmpy/releases/tag/gmpy2-2.2.0a2) is [missing on PyPI](https://pypi.org/project/gmpy2/#history). Is there a chance it could be added? Thanks and best, Sebastian CC @hannob

Hello, I'm developing a project that necessitates seamless interaction between Python and C++, specifically for executing advanced arithmetic operations, including addition, subtraction, multiplication, division, exponentiation, and logarithms, on arbitrary precision...

If this is a bad place to open this discussion then let me know and I'll take it elsewhere. I've been working on python-flint which is another project that packages...

Currently, we are using a bunch of private CPython functions to provide fast mpz int conversion: see [GMPy_MPZ_From_PyLong](https://github.com/aleaxit/gmpy/blob/141eb88c9c4ab810d7988f0ebd17c83a6c11a8b7/src/gmpy2_convert_gmp.c#L42), [GMPy_PyLong_From_MPZ](https://github.com/aleaxit/gmpy/blob/141eb88c9c4ab810d7988f0ebd17c83a6c11a8b7/src/gmpy2_convert_gmp.c#L149C1-L149C21) and https://github.com/aleaxit/gmpy/blob/141eb88c9c4ab810d7988f0ebd17c83a6c11a8b7/src/gmpy2_convert.h#L135-L155 There should be a better way! I see several...

Looks like since last release which was ~10 months ago have been added +200 commits (https://github.com/aleaxit/gmpy/compare/gmpy2-2.1.5...master) Do you have any plans to release new version? 🤔

It seems GMP servers block assess from russian networks (I tried several providers). Is this intentional? And if so, maybe it should be documented somehow? I'm aware about "M$ DoS...

I know that I am doing something wrong but just can't figure what. The largest factorial that I can get converted to a mpfr is 44787927. Above this number I...