New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmpfunc in Python 3.0.1 windows installer #49681
Comments
C:\Users\Nigel\myPython\iajaar>C:\Users\Nigel\swigwin-1.3.38\swig - generated a C++ wrapper and a Python file. When I attempted to compile I decided to modify object.h from C:\Python30\include: typedef PyObject *(*getattrofunc)(PyObject *, PyObject *);
typedef int (*setattrfunc)(PyObject *, char *, PyObject *);
typedef int (*setattrofunc)(PyObject *, PyObject *, PyObject *);
typedef PyObject *(*reprfunc)(PyObject *);
typedef PyObject *(*getattrofunc)(PyObject *, PyObject *);
typedef int (*setattrfunc)(PyObject *, char *, PyObject *);
typedef int (*cmpfunc)(PyObject *, PyObject *);
typedef int (*setattrofunc)(PyObject *, PyObject *, PyObject *);
typedef PyObject *(*reprfunc)(PyObject *); adding the typedef for cmpfunc. It then compiles fine, AND appears to C:\Users\Nigel\myPython\iajaar\Python>c:\Python30\python
OPTIMAL SOLUTION FOUND Is this good, or should I do something else? Compile Log: Build Log Rebuild started: Project: nigelzGLPK, Configuration: |
This is not a bug in Python; apparently, SWIG hasn't been ported to |
I'm sure swig was ported to python 3.0. http://svn.python.org/view/python/branches/release30-maint/Include/object.h?r1=69215&r2=69221 |
Of course it was! Removal of cmp support was a deliberate |
Not quite an answer to the question. I have built this wrapper with |
This development issues tracker is for issues that might result in The only-half removal of the cmp family in 3.0 was an error. For better What you do with your installation is up to you. If adding a line works Further current-release usage questions should be directed to the PS. Your original post would have been more readable with the long error |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: