Lines Matching refs:value
24 _getbytevalue(PyObject* arg, int *value)
30 *value = -1;
36 *value = -1;
40 *value = face_value;
564 bytearray_setitem(PyByteArrayObject *self, Py_ssize_t i, PyObject *value)
568 // GH-91153: We need to do this *before* the size check, in case value has a
570 if (value && !_getbytevalue(value, &ival)) {
583 if (value == NULL) {
855 int value;
865 int rc = _getbytevalue(items[i], &value);
869 s[i] = value;
889 int rc, value;
903 rc = _getbytevalue(item, &value);
915 PyByteArray_AS_STRING(self)[Py_SIZE(self)-1] = value;
1404 -1 (the default value) means replace all occurrences.
1428 None (the default value) means split on ASCII whitespace characters
1432 -1 (the default value) means no limit.
1614 The index where the value is to be inserted.
1696 int value;
1732 if (! _getbytevalue(item, &value)) {
1738 buf[len++] = value;
1791 -1 (the default value) means remove the last item.
1803 int value;
1822 value = buf[index];
1827 return _PyLong_FromUnsignedChar((unsigned char)value);
1833 value: bytesvalue
1834 The value to remove.
1837 Remove the first occurrence of a value in the bytearray.
1841 bytearray_remove_impl(PyByteArrayObject *self, int value)
1847 where = stringlib_find_char(buf, n, value);
1849 PyErr_SetString(PyExc_ValueError, "value not found in bytearray");
2071 >>> value = bytearray([0xb9, 0x01, 0xef])
2072 >>> value.hex()
2074 >>> value.hex(':')
2076 >>> value.hex(':', 2)
2078 >>> value.hex(':', -2)