Hi Bruno,
Thanks for the patches.
I don't understand this:
#if PY_MAJOR_VERSION >= 3
int n = PyLong_AsLong (nargs);
#else
int n = PyInt_AsLong (nargs);
#endif
Why do you need to convert to long if you then store in an int? This
seems incorrect to me.
> I included the line
> #define PY_MAJOR_VERSION 2 > in python.h which in principle should be in Python.h
Hmm, if it is defined already in Python.h, then why do you define it
again? Python.h is included by qcc when you use the option -python.
Also, if this is the case, then you should get a warning about a
redefined macro when you compile.
> Also, I couldn't find what is the preferred format to submit a patch so
> I prefer to send the raw files so you can do a diff but don't hesitate
> to let me know if there is another way to submit a patch
I have added some documentation here:
http://basilisk.fr/src/Contributing
cheers,
Stephane