MCPcopy Create free account
hub / github.com/chokkan/crfsuite / SwigPyObject_print

Function SwigPyObject_print

swig/python/export_wrap.cpp:1595–1613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1593}
1594
1595SWIGRUNTIME int
1596SwigPyObject_print(SwigPyObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1597{
1598 char *str;
1599#ifdef METH_NOARGS
1600 PyObject *repr = SwigPyObject_repr(v);
1601#else
1602 PyObject *repr = SwigPyObject_repr(v, NULL);
1603#endif
1604 if (repr) {
1605 str = SWIG_Python_str_AsChar(repr);
1606 fputs(str, fp);
1607 SWIG_Python_str_DelForPy3(str);
1608 Py_DECREF(repr);
1609 return 0;
1610 } else {
1611 return 1;
1612 }
1613}
1614
1615SWIGRUNTIME PyObject *
1616SwigPyObject_str(SwigPyObject *v)

Callers

nothing calls this directly

Calls 2

SwigPyObject_reprFunction · 0.85
SWIG_Python_str_AsCharFunction · 0.85

Tested by

no test coverage detected