[Bf-python] internal Python object conversion question
Ken Hughes
khughes at pacific.edu
Wed Jun 15 22:42:36 CEST 2005
Gilbert, Joseph wrote:
> Yea prob better to write something like:
> item = PySequence_GetItem( pyOb, 0 );
> if(item == NULL)
> return -1;
> float f = (float) PyFloat_AS_DOUBLE(item);
> Py_DECREF(item);
> Hope I didn't write that.:/
Noticed it in api2_2x/CurNurb.c:CurNurb_appendPointToNurb(). Think it
was the latest patch for 2.37a :-(
Ken
More information about the Bf-python
mailing list