Searched refs:py_string (Results 1 – 5 of 5) sorted by relevance
/external/protobuf/python/google/protobuf/pyext/ |
D | map_container.cc | 111 static bool PyStringToSTL(PyObject* py_string, string* stl_string) { in PyStringToSTL() argument 115 if (!py_string) { in PyStringToSTL() 118 if (PyBytes_AsStringAndSize(py_string, &value, &value_len) < 0) { in PyStringToSTL() 119 Py_DECREF(py_string); in PyStringToSTL() 123 Py_DECREF(py_string); in PyStringToSTL()
|
/external/tensorflow/tensorflow/python/lib/core/ |
D | ndarray_tensor.cc | 286 auto py_string = in CopyTF_TensorStringsToPyArray() local 288 if (py_string == nullptr) { in CopyTF_TensorStringsToPyArray() 295 py_string.get()) != 0) { in CopyTF_TensorStringsToPyArray()
|
/external/llvm-project/lldb/unittests/ScriptInterpreter/Python/ |
D | PythonDataObjectsTests.cpp | 264 PyObject *py_string = PyString_FromString(test_string); in TEST_F() local 265 EXPECT_TRUE(PythonString::Check(py_string)); in TEST_F() 266 PythonString python_string(PyRefType::Owned, py_string); in TEST_F()
|
/external/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/ |
D | ScriptInterpreterPython.cpp | 2586 PythonString py_string(PyRefType::Borrowed, py_return.get()); in GetSyntheticTypeName() local 2587 llvm::StringRef return_data(py_string.GetString()); in GetSyntheticTypeName() 3113 PythonString py_string(PyRefType::Borrowed, py_return.get()); in GetShortHelpForCommandObject() local 3114 llvm::StringRef return_data(py_string.GetString()); in GetShortHelpForCommandObject()
|
/external/python/cpython2/Modules/ |
D | cPickle.c | 3711 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()
|