aleaxit / gmpy

General Multi-Precision arithmetic for Python 2.6+/3+ (GMP, MPIR, MPFR, MPC)
https://gmpy2.readthedocs.io/en/latest/
GNU Lesser General Public License v3.0
510 stars 86 forks source link

complex conjugate crash #434

Closed achan001 closed 11 months ago

achan001 commented 11 months ago

Is the fix applied to gmpy2?

I downloaded WinPython 3.8.9 for my Win7 laptop, the bug still there.

py3> import gmpy2
py3> gmpy2.version()
'2.0.8'
py3> gmpy2.mpc('1+2j').conjugate() # system crash

And, same bug for Python 2.6.6 You had gmpy2 2.0.9 specially made for my Python 2.6.6, a long time ago.


py2> import gmpy2
py2> gmpy2.version()
'2.0.9'
py2> gmpy2.mpc('1+2j').conjugate() # system crash
casevh commented 11 months ago

Yes, it is fixed.

gmpy2.mpc('1+2j').conjugate() mpc('1.0-2.0j')

achan001 commented 11 months ago

I updated gmpy2 with gmpy2-2.1.5-cp38-cp38-win_amd64.whl It work now! Thanks!

This is my first uninstall/install using "WinPython Control Panel.exe" Drag and drop feature is nice, but the process is scary. It seems to hang the machine ... but it did finished the job.