[C++-sig] double vs float in Py_BuildValue
David Abrahams
dave at boost-consulting.com
Mon Jun 27 17:09:56 CEST 2005
Gary Robinson <grobinson at goombah.com> writes:
> This approach seems to work reliably -- at least variations I've tried
> haven't caused a bus error. But I haven't been able to discern an
> explanation from the docs as to why this would be better. The docs say
> that both METH_VARARGS and METH_NOARGS expect a PyCFunction. So if I am
> calling the function with no arguments, why can't I use METH_NOARGS and
> skip the call to PyArg_ParseTuple?
>
> Of course it may be that it's only due to random chance that this
> change "seems" to fix the problem so far.
This seems like a Python problem (or a usage error on your part, like
linking with the wrong Python library) that should be reported to the
Python-dev mailing list. Or at least, you should ask on
comp.lang.python.
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
More information about the Cplusplus-sig
mailing list