Lines Matching defs:table
2039 table: object
2040 Translation table, which must be a bytes object of length 256.
2044 Return a copy with each character mapped by the given translation table.
2047 The remaining characters are mapped through the given translation table.
2051 bytes_translate_impl(PyBytesObject *self, PyObject *table,
2067 if (PyBytes_Check(table)) {
2068 table_chars = PyBytes_AS_STRING(table);
2069 tablen = PyBytes_GET_SIZE(table);
2071 else if (table == Py_None) {
2076 if (PyObject_GetBuffer(table, &table_view, PyBUF_SIMPLE) != 0)
2084 "translation table must be 256 characters long");
2176 Return a translation table useable for the bytes or bytearray translate method.
2178 The returned table will be one where each byte in frm is mapped to the byte at