Lines Matching defs:arg
106 bytes_partition(PyBytesObject *self, PyObject *arg)
111 if (PyObject_GetBuffer(arg, &sep, PyBUF_SIMPLE) != 0) {
115 _PyArg_BadArgument("partition", "argument", "contiguous buffer", arg);
149 bytes_rpartition(PyBytesObject *self, PyObject *arg)
154 if (PyObject_GetBuffer(arg, &sep, PyBUF_SIMPLE) != 0) {
158 _PyArg_BadArgument("rpartition", "argument", "contiguous buffer", arg);
548 bytes_removeprefix(PyBytesObject *self, PyObject *arg)
553 if (PyObject_GetBuffer(arg, &prefix, PyBUF_SIMPLE) != 0) {
557 _PyArg_BadArgument("removeprefix", "argument", "contiguous buffer", arg);
588 bytes_removesuffix(PyBytesObject *self, PyObject *arg)
593 if (PyObject_GetBuffer(arg, &suffix, PyBUF_SIMPLE) != 0) {
597 _PyArg_BadArgument("removesuffix", "argument", "contiguous buffer", arg);
748 bytes_fromhex(PyTypeObject *type, PyObject *arg)
753 if (!PyUnicode_Check(arg)) {
754 _PyArg_BadArgument("fromhex", "argument", "str", arg);
757 if (PyUnicode_READY(arg) == -1) {
760 string = arg;