Lines Matching refs:value

655     int fast;                   /* Enable fast mode if set to a true value.
697 2.x. The default value is "ASCII" */
699 decoding strings. The default value is
886 mt_table, so we're setting the key:value pair
899 /* Returns NULL on failure, a pointer to the value otherwise. */
911 PyMemoTable_Set(PyMemoTable *self, PyObject *key, Py_ssize_t value)
919 entry->me_value = value;
924 entry->me_value = value;
964 _write_size64(char *out, size_t value)
971 out[i] = (unsigned char)((value >> (8 * i)) & 0xff);
1098 /* Write an invalid value, for debugging */
1456 should use this function's return value to know how many bytes you can
1547 This takes its own reference to `value`. */
1549 _Unpickler_MemoPut(UnpicklerObject *self, size_t idx, PyObject *value)
1558 Py_INCREF(value);
1560 self->memo[idx] = value;
1711 Py_ssize_t *value;
1715 value = PyMemoTable_Get(self->memo, key);
1716 if (value == NULL) {
1724 "%zd\n", *value);
1728 if (*value < 256) {
1730 pdata[1] = (unsigned char)(*value & 0xff);
1733 else if ((size_t)*value <= 0xffffffffUL) {
1735 pdata[1] = (unsigned char)(*value & 0xff);
1736 pdata[2] = (unsigned char)((*value >> 8) & 0xff);
1737 pdata[3] = (unsigned char)((*value >> 16) & 0xff);
1738 pdata[4] = (unsigned char)((*value >> 24) & 0xff);
2094 resulting value stays unsigned which is commonly not what we want,
2805 * its value from the memo.
3107 /* iter is an iterator giving (key, value) pairs, and we batch up chunks of
3108 * MARK key value ... key value SETITEMS
3242 * MARK key value ... key value SETITEMS
3252 PyObject *key = NULL, *value = NULL;
3267 PyDict_Next(obj, &ppos, &key, &value);
3269 Py_INCREF(value);
3273 if (save(self, value, 0) < 0) {
3277 Py_CLEAR(value);
3288 while (PyDict_Next(obj, &ppos, &key, &value)) {
3290 Py_INCREF(value);
3294 if (save(self, value, 0) < 0) {
3298 Py_CLEAR(value);
3315 Py_XDECREF(value);
3677 long code; /* extension code as C value */
3698 of the value returned by the extension_registry. It should for
3701 /* Verify code_obj has the right type and value. */
4162 what happen if the value returned by the __reduce__() method of
4556 pickled by reference and not by value. This method is useful when
4724 of times with a buffer view. If the callback returns a false value
4833 PyObject *key, *value;
4836 value = Py_BuildValue("nO", entry.me_value, entry.me_key);
4838 if (key == NULL || value == NULL) {
4840 Py_XDECREF(value);
4843 status = PyDict_SetItem(new_memo, key, value);
4845 Py_DECREF(value);
4994 PyObject *key, *value;
5000 while (PyDict_Next(obj, &i, &key, &value)) {
5004 if (!PyTuple_Check(value) || PyTuple_GET_SIZE(value) != 2) {
5009 memo_id = PyLong_AsSsize_t(PyTuple_GET_ITEM(value, 0));
5012 memo_obj = PyTuple_GET_ITEM(value, 1);
5046 Pickler_set_persid(PicklerObject *self, PyObject *value, void *Py_UNUSED(ignored))
5048 if (value == NULL) {
5053 if (!PyCallable_Check(value)) {
5060 Py_INCREF(value);
5061 Py_XSETREF(self->pers_func, value);
5166 PyObject *value;
5186 value = PyLong_FromString(s, NULL, 0);
5187 if (value == NULL) {
5195 if ((value = PyBool_FromLong(x)) == NULL)
5199 if ((value = PyLong_FromLong(x)) == NULL)
5204 PDATA_PUSH(self->stack, value, -1);
5216 /* s contains x bytes of an unsigned little-endian integer. Return its value
5246 /* s contains x bytes of a little-endian integer. Return its value as a
5276 PyObject *value;
5281 if ((value = PyLong_FromLong(x)) == NULL)
5284 PDATA_PUSH(self->stack, value, -1);
5324 PyObject *value;
5340 value = PyLong_FromString(s, NULL, 0);
5341 if (value == NULL)
5344 PDATA_PUSH(self->stack, value, -1);
5354 PyObject *value;
5372 value = PyLong_FromLong(0L);
5377 value = _PyLong_FromByteArray((unsigned char *)pdata, (size_t)size,
5380 if (value == NULL)
5382 PDATA_PUSH(self->stack, value, -1);
5389 PyObject *value;
5407 value = PyFloat_FromDouble(d);
5408 if (value == NULL)
5411 PDATA_PUSH(self->stack, value, -1);
5418 PyObject *value;
5429 if ((value = PyFloat_FromDouble(x)) == NULL)
5432 PDATA_PUSH(self->stack, value, -1);
5761 PyObject *dict, *key, *value;
5780 value = self->stack->data[k];
5781 if (PyDict_SetItem(dict, key, value) < 0) {
6177 PyObject *key, *value;
6196 value = _Unpickler_MemoGet(self, idx);
6197 if (value == NULL) {
6200 PyErr_Format(st->UnpicklingError, "Memo value not found at index %ld", idx);
6207 PDATA_APPEND(self->stack, value, -1);
6214 PyObject *value;
6223 value = _Unpickler_MemoGet(self, idx);
6224 if (value == NULL) {
6228 PyErr_Format(st->UnpicklingError, "Memo value not found at index %ld", idx);
6234 PDATA_APPEND(self->stack, value, -1);
6241 PyObject *value;
6250 value = _Unpickler_MemoGet(self, idx);
6251 if (value == NULL) {
6255 PyErr_Format(st->UnpicklingError, "Memo value not found at index %ld", idx);
6261 PDATA_APPEND(self->stack, value, -1);
6266 * the number of bytes following the opcode, holding the index (code) value.
6358 PyObject *key, *value;
6369 value = self->stack->data[Py_SIZE(self->stack) - 1];
6383 return _Unpickler_MemoPut(self, idx, value);
6389 PyObject *value;
6398 value = self->stack->data[Py_SIZE(self->stack) - 1];
6402 return _Unpickler_MemoPut(self, idx, value);
6408 PyObject *value;
6417 value = self->stack->data[Py_SIZE(self->stack) - 1];
6426 return _Unpickler_MemoPut(self, idx, value);
6432 PyObject *value;
6436 value = self->stack->data[Py_SIZE(self->stack) - 1];
6438 return _Unpickler_MemoPut(self, self->memo_len, value);
6444 PyObject *value;
6498 value = self->stack->data[i];
6499 result = _Pickle_FastCall(append_func, value);
6536 PyObject *value, *key;
6560 value = self->stack->data[i];
6561 if (PyObject_SetItem(dict, key, value) < 0) {
6850 PyObject *value = NULL;
6974 PDATA_POP(self->stack, value);
6975 return value;
7336 PyObject *key, *value;
7338 value = self->unpickler->memo[i];
7339 if (value == NULL)
7345 status = PyDict_SetItem(new_memo, key, value);
7504 PyObject *key, *value;
7511 while (PyDict_Next(obj, &i, &key, &value)) {
7526 if (_Unpickler_MemoPut(self, idx, value) < 0)
7564 Unpickler_set_persload(UnpicklerObject *self, PyObject *value, void *Py_UNUSED(ignored))
7566 if (value == NULL) {
7571 if (!PyCallable_Check(value)) {
7579 Py_INCREF(value);
7580 Py_XSETREF(self->pers_func, value);