Re: Extending Python with C API

2007-09-13 Thread Thierry Masson
On 9/13/07, Carsten Haese wrote: >Your module C code uses an unknown function by the name of PyBuildValue. >The actual name of the function you mean is Py_BuildValue. Thank you so much, Carsten. I can't believe I missed that underscore! I'm posting the working code below in case it ever turns out

Extending Python with C API

2007-09-13 Thread Thierry Masson
re"}, {NULL, NULL} }; setup.py: ---- from distutils.core import setup, Extension setup(name = "gtestmodule", version = "1.0", maintainer = "thierry masson", maintainer_email = "[EMAIL PROTECTED]", description =