Home
last modified time | relevance | path

Searched refs:py_string (Results 1 – 3 of 3) sorted by relevance

/external/protobuf/python/google/protobuf/pyext/
Dmap_container.cc115 static bool PyStringToSTL(PyObject* py_string, string* stl_string) { in PyStringToSTL() argument
119 if (!py_string) { in PyStringToSTL()
122 if (PyBytes_AsStringAndSize(py_string, &value, &value_len) < 0) { in PyStringToSTL()
123 Py_DECREF(py_string); in PyStringToSTL()
127 Py_DECREF(py_string); in PyStringToSTL()
/external/tensorflow/tensorflow/python/lib/core/
Dndarray_tensor.cc253 auto py_string = make_safe(PyBytes_FromStringAndSize(ptr, len)); in CopyTF_TensorStringsToPyArray() local
254 if (py_string == nullptr) { in CopyTF_TensorStringsToPyArray()
261 py_string.get()) != 0) { in CopyTF_TensorStringsToPyArray()
/external/python/cpython2/Modules/
DcPickle.c3711 PyObject *py_string = 0; in load_binstring() local
3730 if (!( py_string = PyString_FromStringAndSize(s, l))) in load_binstring()
3733 PDATA_PUSH(self->stack, py_string, -1); in load_binstring()
3741 PyObject *py_string = 0; in load_short_binstring() local
3752 if (!( py_string = PyString_FromStringAndSize(s, l))) return -1; in load_short_binstring()
3754 PDATA_PUSH(self->stack, py_string, -1); in load_short_binstring()