// @pymethod |PyIObjectCollection|RemoveObjectAt|Removes a single object from the collection PyObject *PyIObjectCollection::RemoveObjectAt(PyObject *self, PyObject *args) { IObjectCollection *pIOC = GetI(self); if ( pIOC == NULL ) return NULL; // @pyparm int|Index||Zero-based index of item to remove UINT Index; if ( !PyArg_ParseTuple(args, "i:RemoveObjectAt", &Index) ) return NULL; HRESULT hr; PY_INTERFACE_PRECALL; hr = pIOC->RemoveObjectAt( Index ); PY_INTERFACE_POSTCALL; if ( FAILED(hr) ) return PyCom_BuildPyException(hr, pIOC, IID_IObjectCollection ); Py_INCREF(Py_None); return Py_None; }