wangtongada / gmpy

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

Py3 support for gmpy 1.16 C API #74

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Try to import the gmpy 1.16 API in Python 3 using gmpy.h and import_gmpy().
2. Receive compiler error:

src/wrapper/wrap_isl.cpp:34:3: error: ‘PyCObject_Check’ was not declared in 
this scope
src/wrapper/wrap_isl.cpp:34:3: error: ‘PyCObject_AsVoidPtr’ was not 
declared in this scope

3. Not surprising: CObjects were removed in Py3. Suggestion: switch to capsules 
for Py3.

Original issue reported on code.google.com by andreas.kloeckner@gmail.com on 27 May 2013 at 8:25

GoogleCodeExporter commented 8 years ago
I'll work on a 1.17 release with capsule support.

To the best of my knowledge, you're the only user of the C API (or at least, 
the only one using Python 3).

Can I ask how you are using it? 

Would it be beneficial to have access to a larger set of the internal 
functions? (I'm thinking of exposing a very complete API for gmpy2 2.1.x.)

Original comment by casevh on 29 May 2013 at 4:05

GoogleCodeExporter commented 8 years ago
 Sure:

 http://documen.tician.de/islpy/

 which is a foundation for

 https://pypi.python.org/pypi/loo.py

 (which is still in "stealth mode")

 > Would it be beneficial to have access to a larger set of the internal  
 > functions? (I'm thinking of exposing a very complete API for gmpy2 2.1.x.)

 FWIW, the current set is adequate for me.

 Thanks!
 Andreas

Original comment by andreas.kloeckner@gmail.com on 29 May 2013 at 11:59

GoogleCodeExporter commented 8 years ago
Can you test /svn/tags/gmpy_maint/ from the repository?

Case

Original comment by casevh on 7 Jul 2013 at 7:43

GoogleCodeExporter commented 8 years ago
I've released GMPY 1.17. It should resolve the issue.

Original comment by casevh on 28 Jul 2013 at 4:29