Home
last modified time | relevance | path

Searched refs:py_string (Results 1 – 2 of 2) 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/python/cpython2/Modules/
DcPickle.c3695 PyObject *py_string = 0; in load_binstring() local
3714 if (!( py_string = PyString_FromStringAndSize(s, l))) in load_binstring()
3717 PDATA_PUSH(self->stack, py_string, -1); in load_binstring()
3725 PyObject *py_string = 0; in load_short_binstring() local
3736 if (!( py_string = PyString_FromStringAndSize(s, l))) return -1; in load_short_binstring()
3738 PDATA_PUSH(self->stack, py_string, -1); in load_short_binstring()