MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / PyUnicodeWriter_WriteStr

Function PyUnicodeWriter_WriteStr

asyncpg/protocol/record/pythoncapi_compat.h:1415–1426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1413}
1414
1415static inline int
1416PyUnicodeWriter_WriteStr(PyUnicodeWriter *writer, PyObject *obj)
1417{
1418 PyObject *str = PyObject_Str(obj);
1419 if (str == NULL) {
1420 return -1;
1421 }
1422
1423 int res = _PyUnicodeWriter_WriteStr((_PyUnicodeWriter*)writer, str);
1424 Py_DECREF(str);
1425 return res;
1426}
1427
1428static inline int
1429PyUnicodeWriter_WriteRepr(PyUnicodeWriter *writer, PyObject *obj)

Callers 1

record_reprFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected