Lines Matching refs:args
44 bytes_split(PyBytesObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
54 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 0, 2, 0, argsbuf);
55 if (!args) {
61 if (args[0]) {
62 sep = args[0];
69 PyObject *iobj = _PyNumber_Index(args[1]);
195 bytes_rsplit(PyBytesObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
205 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 0, 2, 0, argsbuf);
206 if (!args) {
212 if (args[0]) {
213 sep = args[0];
220 PyObject *iobj = _PyNumber_Index(args[1]);
267 bytes_strip(PyBytesObject *self, PyObject *const *args, Py_ssize_t nargs)
278 bytes = args[0];
301 bytes_lstrip(PyBytesObject *self, PyObject *const *args, Py_ssize_t nargs)
312 bytes = args[0];
335 bytes_rstrip(PyBytesObject *self, PyObject *const *args, Py_ssize_t nargs)
346 bytes = args[0];
374 bytes_translate(PyBytesObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
384 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 1, 2, 0, argsbuf);
385 if (!args) {
388 table = args[0];
392 deletechars = args[1];
418 bytes_maketrans(void *null, PyObject *const *args, Py_ssize_t nargs)
427 if (PyObject_GetBuffer(args[0], &frm, PyBUF_SIMPLE) != 0) {
431 _PyArg_BadArgument("maketrans", "argument 1", "contiguous buffer", args[0]);
434 if (PyObject_GetBuffer(args[1], &to, PyBUF_SIMPLE) != 0) {
438 _PyArg_BadArgument("maketrans", "argument 2", "contiguous buffer", args[1]);
477 bytes_replace(PyBytesObject *self, PyObject *const *args, Py_ssize_t nargs)
487 if (PyObject_GetBuffer(args[0], &old, PyBUF_SIMPLE) != 0) {
491 _PyArg_BadArgument("replace", "argument 1", "contiguous buffer", args[0]);
494 if (PyObject_GetBuffer(args[1], &new, PyBUF_SIMPLE) != 0) {
498 _PyArg_BadArgument("replace", "argument 2", "contiguous buffer", args[1]);
506 PyObject *iobj = _PyNumber_Index(args[2]);
634 bytes_decode(PyBytesObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
644 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 0, 2, 0, argsbuf);
645 if (!args) {
651 if (args[0]) {
652 if (!PyUnicode_Check(args[0])) {
653 _PyArg_BadArgument("decode", "argument 'encoding'", "str", args[0]);
657 encoding = PyUnicode_AsUTF8AndSize(args[0], &encoding_length);
669 if (!PyUnicode_Check(args[1])) {
670 _PyArg_BadArgument("decode", "argument 'errors'", "str", args[1]);
674 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length);
705 bytes_splitlines(PyBytesObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
714 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 0, 1, 0, argsbuf);
715 if (!args) {
721 keepends = _PyLong_AsInt(args[0]);
797 bytes_hex(PyBytesObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
807 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 0, 2, 0, argsbuf);
808 if (!args) {
814 if (args[0]) {
815 sep = args[0];
820 bytes_per_sep = _PyLong_AsInt(args[1]);
836 bytes_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
843 Py_ssize_t nargs = PyTuple_GET_SIZE(args);
849 fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 0, 3, 0, argsbuf);