Re: API functions not working as expected

2006-06-15 Thread John Machin
On 16/06/2006 9:51 AM, Kirk McDonald wrote: > ... for reasons that are obvious in retrospect. Specifically, I am > talking about the PyNumber_InPlace* family of functions. For example, > the docs for InPlaceAdd say: > > PyObject* PyNumber_InPlaceAdd(PyObject *o1, PyObject *o2) > Return value

API functions not working as expected

2006-06-15 Thread Kirk McDonald
... for reasons that are obvious in retrospect. Specifically, I am talking about the PyNumber_InPlace* family of functions. For example, the docs for InPlaceAdd say: PyObject* PyNumber_InPlaceAdd(PyObject *o1, PyObject *o2) Return value: New reference. Returns the result of adding o1 a