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

Function SwigPyStaticVar_repr

src/MeCab/MeCab_wrap.cpp:2761–2769  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2759}
2760
2761SWIGINTERN PyObject *
2762SwigPyStaticVar_repr(PyGetSetDescrObject *descr) {
2763#if PY_VERSION_HEX >= 0x03000000
2764
2765 return PyUnicode_FromFormat("<class attribute '%S' of type '%s'>", PyDescr_NAME(descr), PyDescr_TYPE(descr)->tp_name);
2766#else
2767 return PyString_FromFormat("<class attribute '%s' of type '%s'>", PyString_AsString(PyDescr_NAME(descr)), PyDescr_TYPE(descr)->tp_name);
2768#endif
2769}
2770
2771SWIGINTERN int
2772SwigPyStaticVar_traverse(PyObject *self, visitproc visit, void *arg) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected