wangtongada / gmpy

Automatically exported from code.google.com/p/gmpy
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Keyword arguments not supported #51

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. type in mpz('0x1234',base=0)

What is the expected output? What do you see instead?

Expected: mpz(4660)
Actual: TypeError: mpz() takes no keyword arguments

What version of the product are you using? On what operating system?

gmpy 1.14 on linux x86-64

Please provide any additional information below.

I'm using xUbuntu 11.10. I installed this from the .deb package python-gmpy.

Original issue reported on code.google.com by enzymati...@gmail.com on 9 Mar 2012 at 6:22

GoogleCodeExporter commented 8 years ago
Step before step 1 for reproducing the problem:

0. from gmpy import *

Original comment by enzymati...@gmail.com on 9 Mar 2012 at 6:23

GoogleCodeExporter commented 8 years ago
This has been fixed in the next major version - gmpy2. A beta version should be 
released soon. Are you will to test the beta release?

Original comment by casevh on 9 Mar 2012 at 9:29

GoogleCodeExporter commented 8 years ago
Yes, I'll try the beta release. Thanks.

Original comment by enzymati...@gmail.com on 9 Mar 2012 at 10:01

GoogleCodeExporter commented 8 years ago
If you are comfortable downloading source code from SVN, the current code 
should be the beta release (unless I find more bugs). The installation process 
is documented at http://code.google.com/p/gmpy/wiki/InstallingGmpy2 but needs 
to be updated to require MPFR 3.1.0 and MPC 0.9 if you want to test real (mpfr) 
and complex (mpc) support. Integer (mpz) and rational (mpq) support just 
requires GMP.

It might take a week or two before I make an official beta release.

Original comment by casevh on 10 Mar 2012 at 12:29

GoogleCodeExporter commented 8 years ago
Sorry it has taken me so long but gmpy2 beta1 is available. Please let me know 
how it works for you.

Original comment by casevh on 9 Apr 2012 at 1:36

GoogleCodeExporter commented 8 years ago
Keyword arguments are supported in gmpy2. Since I'm only fixing critical bugs 
in version 1, this won't be fixed in gmpy 1.x.

Original comment by casevh on 15 Jun 2012 at 4:34