Lines Matching refs:sep
8 PyObject* sep, int bytes_per_sep_group,
14 if (sep) {
15 Py_ssize_t seplen = PyObject_Length((PyObject*)sep);
20 PyErr_SetString(PyExc_ValueError, "sep must be length 1.");
23 if (PyUnicode_Check(sep)) {
24 if (PyUnicode_READY(sep))
26 if (PyUnicode_KIND(sep) != PyUnicode_1BYTE_KIND) {
27 PyErr_SetString(PyExc_ValueError, "sep must be ASCII.");
30 sep_char = PyUnicode_READ_CHAR(sep, 0);
32 else if (PyBytes_Check(sep)) {
33 sep_char = PyBytes_AS_STRING(sep)[0];
36 PyErr_SetString(PyExc_TypeError, "sep must be str or bytes.");
40 PyErr_SetString(PyExc_ValueError, "sep must be ASCII.");
51 /* How many sep characters we'll be inserting. */
97 /* The number of complete chunk+sep periods */
163 PyObject* sep, const int bytes_per_group)
165 return _Py_strhex_impl(argbuf, arglen, sep, bytes_per_group, 0);
171 PyObject* sep, const int bytes_per_group)
173 return _Py_strhex_impl(argbuf, arglen, sep, bytes_per_group, 1);