Home
last modified time | relevance | path

Searched refs:repr_str (Results 1 – 12 of 12) sorted by relevance

/external/python/cpython3/Lib/test/test_importlib/frozen/
Dtest_loader.py67 repr_str = self.machinery.FrozenImporter.module_repr(module)
68 self.assertEqual(repr_str,
159 repr_str = self.machinery.FrozenImporter.module_repr(module)
160 self.assertEqual(repr_str,
/external/libchrome/third_party/ply/
Dyacc.py144 repr_str = repr(r)
145 if '\n' in repr_str: repr_str = repr(repr_str)
146 if len(repr_str) > resultlimit:
147 repr_str = repr_str[:resultlimit]+" ..."
148 result = "<%s @ 0x%x> (%s)" % (type(r).__name__,id(r),repr_str)
154 repr_str = repr(r)
155 if '\n' in repr_str: repr_str = repr(repr_str)
156 if len(repr_str) < 16:
157 return repr_str
/external/selinux/python/sepolgen/src/sepolgen/
Dyacc.py139 repr_str = repr(r)
140 if '\n' in repr_str:
141 repr_str = repr(repr_str)
142 if len(repr_str) > resultlimit:
143 repr_str = repr_str[:resultlimit] + ' ...'
144 result = '<%s @ 0x%x> (%s)' % (type(r).__name__, id(r), repr_str)
149 repr_str = repr(r)
150 if '\n' in repr_str:
151 repr_str = repr(repr_str)
152 if len(repr_str) < 16:
[all …]
/external/ply/ply/ply/
Dyacc.py139 repr_str = repr(r)
140 if '\n' in repr_str:
141 repr_str = repr(repr_str)
142 if len(repr_str) > resultlimit:
143 repr_str = repr_str[:resultlimit] + ' ...'
144 result = '<%s @ 0x%x> (%s)' % (type(r).__name__, id(r), repr_str)
149 repr_str = repr(r)
150 if '\n' in repr_str:
151 repr_str = repr(repr_str)
152 if len(repr_str) < 16:
[all …]
/external/tensorflow/tensorflow/python/lib/core/
Dpy_seq_tensor.cc91 string repr_str; in PyRepr() local
92 if (ConvertOneString(repr_obj.get(), &repr_str) == nullptr) { in PyRepr()
93 return repr_str; in PyRepr()
/external/python/cpython2/Lib/
Drepr.py91 def repr_str(self, x, level): member in Repr
Dpydoc.py439 repr_str = repr_string variable in HTMLRepr
1020 repr_str = repr_string variable in TextRepr
/external/python/cpython3/Lib/
Dreprlib.py120 def repr_str(self, x, level): member in Repr
Dpydoc.py463 repr_str = repr_string variable in HTMLRepr
1064 repr_str = repr_string variable in TextRepr
/external/python/cpython3/Python/
Dsysmodule.c215 PyObject *encoded, *escaped_str, *repr_str, *buffer, *result; in sys_displayhook_unencodable() local
226 repr_str = PyObject_Repr(o); in sys_displayhook_unencodable()
227 if (repr_str == NULL) in sys_displayhook_unencodable()
229 encoded = PyUnicode_AsEncodedString(repr_str, in sys_displayhook_unencodable()
232 Py_DECREF(repr_str); in sys_displayhook_unencodable()
/external/python/cpython2/Modules/
DcPickle.c1250 char *repr_str; in save_string() local
1259 repr_str = PyString_AS_STRING((PyStringObject *)repr); in save_string()
1264 if (self->write_func(self, repr_str, len) < 0) in save_string()
1420 char *repr_str; in save_unicode() local
1430 repr_str = PyString_AS_STRING((PyStringObject *)repr); in save_unicode()
1435 if (self->write_func(self, repr_str, len) < 0) in save_unicode()
/external/python/cpython2/Objects/
Dtypeobject.c5528 static PyObject *repr_str; local
5530 func = lookup_method(self, "__repr__", &repr_str);