Make CObjects mutable. Fixes #477441.

This commit is contained in:
Martin v. Löwis 2003-10-19 18:30:01 +00:00
parent 95cf84a4f3
commit 01a74b2fa1
4 changed files with 30 additions and 5 deletions

View file

@ -45,6 +45,9 @@ PyAPI_FUNC(void *) PyCObject_GetDesc(PyObject *);
/* Import a pointer to a C object from a module using a PyCObject. */
PyAPI_FUNC(void *) PyCObject_Import(char *module_name, char *cobject_name);
/* Modify a C object. Fails (==0) if object has a destructor. */
PyAPI_FUNC(int) PyCObject_SetVoidPtr(PyObject *self, void *cobj);
#ifdef __cplusplus
}
#endif