Searched refs:pyobj (Results 1 – 6 of 6) sorted by relevance
/external/tensorflow/tensorflow/python/saved_model/ |
D | nested_structure_coder.py | 76 def _map_structure(self, pyobj, coders): argument 78 if can(pyobj): 80 return do(pyobj, recursion_fn) 82 "No encoder for object [%s] of type [%s]." % (str(pyobj), type(pyobj))) 131 def can_encode(self, pyobj): argument 132 return isinstance(pyobj, list) 174 def can_encode(self, pyobj): argument 175 return _is_tuple(pyobj) 197 def can_encode(self, pyobj): argument 198 return isinstance(pyobj, dict) [all …]
|
/external/python/cpython2/Lib/ctypes/test/ |
D | test_python_api.py | 63 pyobj = PyObj_FromPtr(id(s)) 64 self.assertIs(s, pyobj) 67 del pyobj
|
/external/python/cpython3/Lib/ctypes/test/ |
D | test_python_api.py | 62 pyobj = PyObj_FromPtr(id(s)) 63 self.assertIs(s, pyobj) 66 del pyobj
|
/external/libxml2/python/ |
D | types.c | 565 PyObject *pyobj; in libxml_xmlXPathObjectPtrWrap() local 569 pyobj = libxml_xmlXPathObjectPtrWrap(setobj); in libxml_xmlXPathObjectPtrWrap() 573 PyList_SetItem(list, i, pyobj); in libxml_xmlXPathObjectPtrWrap()
|
/external/python/cpython2/Python/ |
D | mactoolboxglue.c | 371 int routinename(PyObject *pyobj, object *cobj) { \ 379 return (*PyMacGluePtr_##routinename)(pyobj, cobj); \
|
/external/python/cffi/c/ |
D | _cffi_backend.c | 5725 PyObject *pyobj, in convert_from_object_fficallback() argument 5733 if (pyobj == Py_None) { in convert_from_object_fficallback() 5754 if (convert_from_object(result, ctype, pyobj) < 0) in convert_from_object_fficallback() 5758 value = _my_PyLong_AsLongLong(pyobj); in convert_from_object_fficallback() 5780 return convert_from_object(result, ctype, pyobj); in convert_from_object_fficallback()
|