Lines Matching refs:sep
24 "split($self, /, sep=None, maxsplit=-1)\n"
27 "Return a list of the sections in the bytes, using sep as the delimiter.\n"
29 " sep\n"
41 bytes_split_impl(PyBytesObject *self, PyObject *sep, Py_ssize_t maxsplit);
47 static const char * const _keywords[] = {"sep", "maxsplit", NULL};
51 PyObject *sep = Py_None;
62 sep = args[0];
80 return_value = bytes_split_impl(self, sep, maxsplit);
87 "partition($self, sep, /)\n"
92 "This will search for the separator sep in the bytes. If the separator is found,\n"
103 bytes_partition_impl(PyBytesObject *self, Py_buffer *sep);
109 Py_buffer sep = {NULL, NULL};
111 if (PyObject_GetBuffer(arg, &sep, PyBUF_SIMPLE) != 0) {
114 if (!PyBuffer_IsContiguous(&sep, 'C')) {
118 return_value = bytes_partition_impl(self, &sep);
121 /* Cleanup for sep */
122 if (sep.obj) {
123 PyBuffer_Release(&sep);
130 "rpartition($self, sep, /)\n"
135 "This will search for the separator sep in the bytes, starting at the end. If\n"
146 bytes_rpartition_impl(PyBytesObject *self, Py_buffer *sep);
152 Py_buffer sep = {NULL, NULL};
154 if (PyObject_GetBuffer(arg, &sep, PyBUF_SIMPLE) != 0) {
157 if (!PyBuffer_IsContiguous(&sep, 'C')) {
161 return_value = bytes_rpartition_impl(self, &sep);
164 /* Cleanup for sep */
165 if (sep.obj) {
166 PyBuffer_Release(&sep);
173 "rsplit($self, /, sep=None, maxsplit=-1)\n"
176 "Return a list of the sections in the bytes, using sep as the delimiter.\n"
178 " sep\n"
192 bytes_rsplit_impl(PyBytesObject *self, PyObject *sep, Py_ssize_t maxsplit);
198 static const char * const _keywords[] = {"sep", "maxsplit", NULL};
202 PyObject *sep = Py_None;
213 sep = args[0];
231 return_value = bytes_rsplit_impl(self, sep, maxsplit);
768 "hex($self, /, sep=<unrepresentable>, bytes_per_sep=1)\n"
773 " sep\n"
794 bytes_hex_impl(PyBytesObject *self, PyObject *sep, int bytes_per_sep);
800 static const char * const _keywords[] = {"sep", "bytes_per_sep", NULL};
804 PyObject *sep = NULL;
815 sep = args[0];
825 return_value = bytes_hex_impl(self, sep, bytes_per_sep);