Lines Matching +full:argument +full:- +full:count
6 "split($self, /, sep=None, maxsplit=-1)\n"
7 "--\n"
17 " -1 (the default value) means no limit.");
32 Py_ssize_t noptargs = nargs + (kwnames ? PyTuple_GET_SIZE(kwnames) : 0) - 0; in bytes_split()
34 Py_ssize_t maxsplit = -1; in bytes_split()
45 if (!--noptargs) { in bytes_split()
51 "integer argument expected, got float" ); in bytes_split()
55 Py_ssize_t ival = -1; in bytes_split()
61 if (ival == -1 && PyErr_Occurred()) { in bytes_split()
75 "--\n"
80 "returns a 3-tuple containing the part before the separator, the separator\n"
83 "If the separator is not found, returns a 3-tuple containing the original bytes\n"
102 _PyArg_BadArgument("partition", "argument", "contiguous buffer", arg); in bytes_partition()
118 "--\n"
123 "the separator is found, returns a 3-tuple containing the part before the\n"
126 "If the separator is not found, returns a 3-tuple containing two empty bytes\n"
145 _PyArg_BadArgument("rpartition", "argument", "contiguous buffer", arg); in bytes_rpartition()
160 "rsplit($self, /, sep=None, maxsplit=-1)\n"
161 "--\n"
171 " -1 (the default value) means no limit.\n"
188 Py_ssize_t noptargs = nargs + (kwnames ? PyTuple_GET_SIZE(kwnames) : 0) - 0; in bytes_rsplit()
190 Py_ssize_t maxsplit = -1; in bytes_rsplit()
201 if (!--noptargs) { in bytes_rsplit()
207 "integer argument expected, got float" ); in bytes_rsplit()
211 Py_ssize_t ival = -1; in bytes_rsplit()
217 if (ival == -1 && PyErr_Occurred()) { in bytes_rsplit()
231 "--\n"
239 "Example: b\'.\'.join([b\'ab\', b\'pq\', b\'rs\']) -> b\'ab.pq.rs\'.");
246 "--\n"
248 "Strip leading and trailing bytes contained in the argument.\n"
250 "If the argument is omitted or None, strip leading and trailing ASCII whitespace.");
280 "--\n"
282 "Strip leading bytes contained in the argument.\n"
284 "If the argument is omitted or None, strip leading ASCII whitespace.");
314 "--\n"
316 "Strip trailing bytes contained in the argument.\n"
318 "If the argument is omitted or None, strip trailing ASCII whitespace.");
348 "--\n"
355 "All characters occurring in the optional argument delete are removed.\n"
372 Py_ssize_t noptargs = nargs + (kwnames ? PyTuple_GET_SIZE(kwnames) : 0) - 1; in bytes_translate()
394 "--\n"
423 _PyArg_BadArgument("maketrans", "argument 1", "contiguous buffer", args[0]); in bytes_maketrans()
430 _PyArg_BadArgument("maketrans", "argument 2", "contiguous buffer", args[1]); in bytes_maketrans()
449 "replace($self, old, new, count=-1, /)\n"
450 "--\n"
454 " count\n"
456 " -1 (the default value) means replace all occurrences.\n"
458 "If the optional argument count is given, only the first count occurrences are\n"
466 Py_ssize_t count);
474 Py_ssize_t count = -1; in bytes_replace() local
483 _PyArg_BadArgument("replace", "argument 1", "contiguous buffer", args[0]); in bytes_replace()
490 _PyArg_BadArgument("replace", "argument 2", "contiguous buffer", args[1]); in bytes_replace()
498 "integer argument expected, got float" ); in bytes_replace()
502 Py_ssize_t ival = -1; in bytes_replace()
508 if (ival == -1 && PyErr_Occurred()) { in bytes_replace()
511 count = ival; in bytes_replace()
514 return_value = bytes_replace_impl(self, &old, &new, count); in bytes_replace()
531 "--\n"
554 _PyArg_BadArgument("removeprefix", "argument", "contiguous buffer", arg); in bytes_removeprefix()
570 "--\n"
575 "return bytes[:-len(prefix)]. Otherwise, return a copy of the original\n"
594 _PyArg_BadArgument("removesuffix", "argument", "contiguous buffer", arg); in bytes_removesuffix()
609 "decode($self, /, encoding=\'utf-8\', errors=\'strict\')\n"
610 "--\n"
637 Py_ssize_t noptargs = nargs + (kwnames ? PyTuple_GET_SIZE(kwnames) : 0) - 0; in bytes_decode()
650 _PyArg_BadArgument("decode", "argument 'encoding'", "str", args[0]); in bytes_decode()
662 if (!--noptargs) { in bytes_decode()
667 _PyArg_BadArgument("decode", "argument 'errors'", "str", args[1]); in bytes_decode()
688 "--\n"
708 Py_ssize_t noptargs = nargs + (kwnames ? PyTuple_GET_SIZE(kwnames) : 0) - 0; in bytes_splitlines()
720 "integer argument expected, got float" ); in bytes_splitlines()
724 if (keepends == -1 && PyErr_Occurred()) { in bytes_splitlines()
736 "--\n"
741 "Example: bytes.fromhex(\'B9 01EF\') -> b\'\\\\xb9\\\\x01\\\\xef\'.");
756 _PyArg_BadArgument("fromhex", "argument", "str", arg); in bytes_fromhex()
759 if (PyUnicode_READY(arg) == -1) { in bytes_fromhex()
771 "--\n"
778 " How many bytes between separators. Positive values count from the\n"
779 " right, negative values count from the left.\n"
789 ">>> value.hex(\':\', -2)\n"
805 Py_ssize_t noptargs = nargs + (kwnames ? PyTuple_GET_SIZE(kwnames) : 0) - 0; in bytes_hex()
818 if (!--noptargs) { in bytes_hex()
824 "integer argument expected, got float" ); in bytes_hex()
828 if (bytes_per_sep == -1 && PyErr_Occurred()) { in bytes_hex()