Lines Matching defs:bytes
367 "expected a writable bytes-like object");
386 "a bytes-like object is required, not '%.100s'",
632 "bytes-like objects");
1614 PyObject *bytes;
1617 bytes = PyBytes_FromStringAndSize((const char *)view.buf, view.len);
1618 if (bytes == NULL) {
1622 result = _PyLong_FromBytes(PyBytes_AS_STRING(bytes),
1623 PyBytes_GET_SIZE(bytes), 10);
1624 Py_DECREF(bytes);
1629 return type_error("int() argument must be a string, a bytes-like object "
2902 * Flatten a sequence of bytes() objects into a C array of
2941 /* check for embedded null bytes */