Home
last modified time | relevance | path

Searched refs:py_str (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Modules/
DcPickle.c480 PyObject *py_str = 0, *junk = 0; in write_other() local
484 py_str = PyString_FromStringAndSize(self->write_buf, in write_other()
486 if (!py_str) in write_other()
496 if (!( py_str = in write_other()
509 ARG_TUP(self, py_str); in write_other()
518 PDATA_PUSH(self->file, py_str, -1); in write_other()
4207 PyObject *py_str = 0, *value = 0; in load_get() local
4215 if (!( py_str = PyString_FromStringAndSize(s, len - 1))) return -1; in load_get()
4217 value = PyDict_GetItem(self->memo, py_str); in load_get()
4219 PyErr_SetObject(BadPickleGet, py_str); in load_get()
[all …]
/external/protobuf/python/google/protobuf/pyext/
Dmessage.cc1804 ScopedPyObjectPtr py_str(PyObject_Str(py_value.get())); in CheckAndGetInteger() local
1805 if (!py_str.get()) { in CheckAndGetInteger()
1809 return string(PyString_AsString(py_str.get())); in CheckAndGetInteger()