Home
last modified time | relevance | path

Searched refs:pyobj (Results 1 – 5 of 5) sorted by relevance

/external/tensorflow/tensorflow/python/saved_model/
Dnested_structure_coder.py65 def _map_structure(self, pyobj, coders): argument
67 if can(pyobj):
69 return do(pyobj, recursion_fn)
71 "No encoder for object [%s] of type [%s]." % (str(pyobj), type(pyobj)))
120 def can_encode(self, pyobj): argument
121 return isinstance(pyobj, list)
163 def can_encode(self, pyobj): argument
164 return _is_tuple(pyobj)
186 def can_encode(self, pyobj): argument
187 return isinstance(pyobj, dict)
[all …]
/external/python/cpython2/Lib/ctypes/test/
Dtest_python_api.py63 pyobj = PyObj_FromPtr(id(s))
64 self.assertIs(s, pyobj)
67 del pyobj
/external/python/cpython3/Lib/ctypes/test/
Dtest_python_api.py62 pyobj = PyObj_FromPtr(id(s))
63 self.assertIs(s, pyobj)
66 del pyobj
/external/libxml2/python/
Dtypes.c565 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/
Dmactoolboxglue.c371 int routinename(PyObject *pyobj, object *cobj) { \
379 return (*PyMacGluePtr_##routinename)(pyobj, cobj); \