can someone jog my cpu to solve a problem with this C fragment else if(PyObject_HasAttrString(value,"red") && PyObject_HasAttrString(value,"green") && PyObject_HasAttrString(value,"blue")){ double r, g, b; PyObject *v, *s; printf("object seen\n"); v = PyObject_GetAttrString(value,"red"); i = PyArg_Parse(v,"d",&r); s = PyObject_Str(v); printf("v=%8.8X=%s i=%d r=%g\n", v, PyString_AsString(s), i, r); Py_DECREF(s); Py_DECREF(v); when run I see object seen v=008213B8=0.0 i=0 r=8.23537e-164 so I'm getting the attribute ok and it is a float (checked in python) so why does my PyArg_Parse of v fail? -- Robin Becker
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4