MCPcopy Create free account
hub / github.com/SamuraiT/mecab-python3 / SwigPyStaticVar_set

Function SwigPyStaticVar_set

src/MeCab/MeCab_wrap.cpp:2791–2801  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2789}
2790
2791SWIGINTERN int
2792SwigPyStaticVar_set(PyGetSetDescrObject *descr, PyObject *obj, PyObject *value) {
2793 if (descr->d_getset->set != NULL)
2794 return descr->d_getset->set(obj, value, descr->d_getset->closure);
2795#if PY_VERSION_HEX >= 0x03000000
2796 PyErr_Format(PyExc_AttributeError, "attribute '%.300S' of '%.100s' objects is not writable", PyDescr_NAME(descr), PyDescr_TYPE(descr)->tp_name);
2797#else
2798 PyErr_Format(PyExc_AttributeError, "attribute '%.300s' of '%.100s' objects is not writable", PyString_AsString(PyDescr_NAME(descr)), PyDescr_TYPE(descr)->tp_name);
2799#endif
2800 return -1;
2801}
2802
2803SWIGINTERN int
2804SwigPyObjectType_setattro(PyObject *typeobject, PyObject *name, PyObject *value) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected