Home
last modified time | relevance | path

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

/external/python/cpython2/Objects/
Dbytearrayobject.c1473 PyObject *tableobj = NULL, *delobj = NULL; in bytearray_translate() local
1477 &tableobj, &delobj)) in bytearray_translate()
1480 if (tableobj == Py_None) { in bytearray_translate()
1482 tableobj = NULL; in bytearray_translate()
1483 } else if (_getbuffer(tableobj, &vtable) < 0) { in bytearray_translate()
1497 if (tableobj != NULL) in bytearray_translate()
1545 if (tableobj != NULL) in bytearray_translate()
Dstringobject.c2214 PyObject *tableobj, *delobj = NULL; in string_translate() local
2217 &tableobj, &delobj)) in string_translate()
2220 if (PyString_Check(tableobj)) { in string_translate()
2221 table = PyString_AS_STRING(tableobj); in string_translate()
2222 tablen = PyString_GET_SIZE(tableobj); in string_translate()
2224 else if (tableobj == Py_None) { in string_translate()
2229 else if (PyUnicode_Check(tableobj)) { in string_translate()
2238 return PyUnicode_Translate((PyObject *)self, tableobj, NULL); in string_translate()
2241 else if (PyObject_AsCharBuffer(tableobj, &table, &tablen)) in string_translate()