Lines Matching defs:bytes
9 "Convert this value to exact type bytes.");
27 "Return a list of the sections in the bytes, using sep as the delimiter.\n"
30 " The delimiter according which to split the bytes.\n"
90 "Partition the bytes into three parts using the given separator.\n"
92 "This will search for the separator sep in the bytes. If the separator is found,\n"
96 "If the separator is not found, returns a 3-tuple containing the original bytes\n"
97 "object and two empty bytes objects.");
133 "Partition the bytes into three parts using the given separator.\n"
135 "This will search for the separator sep in the bytes, starting at the end. If\n"
139 "If the separator is not found, returns a 3-tuple containing two empty bytes\n"
140 "objects and the original bytes object.");
176 "Return a list of the sections in the bytes, using sep as the delimiter.\n"
179 " The delimiter according which to split the bytes.\n"
186 "Splitting is done starting at the end of the bytes and working to the front.");
241 "Concatenate any number of bytes objects.\n"
243 "The bytes whose method is called is inserted in between each pair.\n"
245 "The result is returned as a new bytes object.\n"
253 "strip($self, bytes=None, /)\n"
256 "Strip leading and trailing bytes contained in the argument.\n"
264 bytes_strip_impl(PyBytesObject *self, PyObject *bytes);
270 PyObject *bytes = Py_None;
278 bytes = args[0];
280 return_value = bytes_strip_impl(self, bytes);
287 "lstrip($self, bytes=None, /)\n"
290 "Strip leading bytes contained in the argument.\n"
298 bytes_lstrip_impl(PyBytesObject *self, PyObject *bytes);
304 PyObject *bytes = Py_None;
312 bytes = args[0];
314 return_value = bytes_lstrip_impl(self, bytes);
321 "rstrip($self, bytes=None, /)\n"
324 "Strip trailing bytes contained in the argument.\n"
332 bytes_rstrip_impl(PyBytesObject *self, PyObject *bytes);
338 PyObject *bytes = Py_None;
346 bytes = args[0];
348 return_value = bytes_rstrip_impl(self, bytes);
361 " Translation table, which must be a bytes object of length 256.\n"
404 "Return a translation table useable for the bytes or bytearray translate method.\n"
409 "The bytes objects frm and to must be of the same length.");
536 "Return a bytes object with the given prefix string removed if present.\n"
538 "If the bytes starts with the prefix string, return bytes[len(prefix):].\n"
539 "Otherwise, return a copy of the original bytes.");
575 "Return a bytes object with the given suffix string removed if present.\n"
577 "If the bytes ends with the suffix string and that suffix is not empty,\n"
578 "return bytes[:-len(prefix)]. Otherwise, return a copy of the original\n"
579 "bytes.");
615 "Decode the bytes using the codec registered for encoding.\n"
618 " The encoding with which to decode the bytes.\n"
693 "Return a list of the lines in the bytes, breaking at line boundaries.\n"
736 "Create a bytes object from a string of hexadecimal numbers.\n"
739 "Example: bytes.fromhex(\'B9 01EF\') -> b\'\\\\xb9\\\\x01\\\\xef\'.");
771 "Create a string of hexadecimal numbers from a bytes object.\n"
774 " An optional single character or byte to separate hex bytes.\n"
776 " How many bytes between separators. Positive values count from the\n"
840 static _PyArg_Parser _parser = {NULL, _keywords, "bytes", 0};
864 _PyArg_BadArgument("bytes", "argument 'encoding'", "str", fastargs[1]);
881 _PyArg_BadArgument("bytes", "argument 'errors'", "str", fastargs[2]);