mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Make CObjects mutable. Fixes #477441.
This commit is contained in:
parent
95cf84a4f3
commit
01a74b2fa1
4 changed files with 30 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue