Lines Matching defs:value

109     PyObject *type, *value, *traceback;
110 PyErr_Fetch(&type, &value, &traceback);
124 PyErr_Restore(type, value, traceback);
154 PyObject *type, *value, *traceback;
155 PyErr_Fetch(&type, &value, &traceback);
175 PyErr_Restore(type, value, traceback);
214 "cannot access local variable '%s' where it is not associated with a value"
217 " value in enclosing scope"
920 // - Atomically check for a key and get its value without error handling.
951 PyObject *value = NULL;
953 value = PyObject_Vectorcall(get, args, 3, NULL);
956 value = PyObject_Vectorcall(get, &args[1], 2, NULL);
958 if (value == NULL) {
961 if (value == dummy) {
963 Py_DECREF(value);
970 PyTuple_SET_ITEM(values, i, value);
1056 // it's as if __match_args__ is some "magic" value that is lost as
1233 // value. It prevents to interrupt the eval loop at every instruction if
1477 then store the new value; it must copy the old value to a temporary
1478 value, then store the new value, and then DECREF the temporary value.
1482 #define SETLOCAL(i, value) do { PyObject *tmp = GETLOCAL(i); \
1483 GETLOCAL(i) = value; \
1570 to a code block. Its return value, if not
1648 // opcode is an 8-bit value to improve the code generated by MSVC
1793 PyObject *value = GETLOCAL(oparg);
1794 if (value == NULL) {
1797 Py_INCREF(value);
1798 PUSH(value);
1803 PyObject *value = GETLOCAL(oparg);
1804 if (value == NULL) {
1807 Py_INCREF(value);
1808 PUSH(value);
1814 PyObject *value = GETITEM(consts, oparg);
1815 Py_INCREF(value);
1816 PUSH(value);
1822 PyObject *value = POP();
1823 SETLOCAL(oparg, value);
1828 PyObject *value = GETLOCAL(oparg);
1829 if (value == NULL) {
1834 Py_INCREF(value);
1835 PUSH(value);
1836 value = GETLOCAL(oparg);
1837 if (value == NULL) {
1840 Py_INCREF(value);
1841 PUSH(value);
1846 PyObject *value = GETLOCAL(oparg);
1847 if (value == NULL) {
1852 Py_INCREF(value);
1853 PUSH(value);
1854 value = GETITEM(consts, oparg);
1855 Py_INCREF(value);
1856 PUSH(value);
1861 PyObject *value = POP();
1862 SETLOCAL(oparg, value);
1865 value = GETLOCAL(oparg);
1866 if (value == NULL) {
1869 Py_INCREF(value);
1870 PUSH(value);
1875 PyObject *value = POP();
1876 SETLOCAL(oparg, value);
1879 value = POP();
1880 SETLOCAL(oparg, value);
1885 PyObject *value = GETITEM(consts, oparg);
1888 Py_INCREF(value);
1889 PUSH(value);
1890 value = GETLOCAL(oparg);
1891 if (value == NULL) {
1894 Py_INCREF(value);
1895 PUSH(value);
1900 PyObject *value = POP();
1901 Py_DECREF(value);
1912 PyObject *value = TOP();
1913 PyObject *res = PyNumber_Positive(value);
1914 Py_DECREF(value);
1922 PyObject *value = TOP();
1923 PyObject *res = PyNumber_Negative(value);
1924 Py_DECREF(value);
1932 PyObject *value = TOP();
1933 int err = PyObject_IsTrue(value);
1934 Py_DECREF(value);
1950 PyObject *value = TOP();
1951 PyObject *res = PyNumber_Invert(value);
1952 Py_DECREF(value);
2337 PyObject *value = THIRD();
2349 PyList_SET_ITEM(list, index, value);
2363 PyObject *value = THIRD();
2367 int err = _PyDict_SetItem_Take2((PyDictObject *)dict, sub, value);
2391 PyObject *value = POP();
2397 Py_DECREF(value);
2400 res = PyObject_CallOneArg(hook, value);
2401 Py_DECREF(value);
2662 PyObject *value = exc_info->exc_value;
2664 Py_XDECREF(value);
2723 PyObject *value = PyExc_AssertionError;
2724 Py_INCREF(value);
2725 PUSH(value);
3150 PyObject *name, *value, *locals = LOCALS();
3155 value = PyDict_GetItemWithError(locals, name);
3156 if (value != NULL) {
3157 Py_INCREF(value);
3164 value = PyObject_GetItem(locals, name);
3165 if (value == NULL) {
3172 if (!value) {
3174 value = PyCell_GET(cell);
3175 if (value == NULL) {
3179 Py_INCREF(value);
3181 PUSH(value);
3187 PyObject *value = PyCell_GET(cell);
3188 if (value == NULL) {
3192 Py_INCREF(value);
3193 PUSH(value);
3448 PyObject *value = TOP();
3454 /* map[key] = value */
3455 if (_PyDict_SetItem_Take2((PyDictObject *)map, key, value) != 0) {
3620 PyObject *value = POP();
3622 values->values[index] = value;
3649 PyObject *value, *old_value;
3656 value = POP();
3657 ep->me_value = value;
3665 value = POP();
3666 ep->me_value = value;
3671 if (!_PyObject_GC_IS_TRACKED(dict) && _PyObject_GC_MAY_BE_TRACKED(value)) {
3692 PyObject *value = POP();
3694 *(PyObject **)addr = value;
4103 PyObject *value = POP();
4104 if (!Py_IsNone(value)) {
4105 Py_DECREF(value);
4110 _Py_DECREF_NO_DEALLOC(value);
4115 PyObject *value = POP();
4116 if (!Py_IsNone(value)) {
4119 Py_DECREF(value);
4124 PyObject *value = POP();
4125 if (Py_IsNone(value)) {
4126 _Py_DECREF_NO_DEALLOC(value);
4131 Py_DECREF(value);
4137 PyObject *value = POP();
4138 if (Py_IsNone(value)) {
4139 _Py_DECREF_NO_DEALLOC(value);
4143 Py_DECREF(value);
4443 Then we push the __exit__ return value.
4466 PyObject *value = TOP();
4477 Py_INCREF(value);
4478 PUSH(value);
4479 assert(PyExceptionInstance_Check(value));
4480 exc_info->exc_value = value;
4580 /* Treat index as a signed 16 bit value */
5479 /* Handles f-string value formatting. */
5482 PyObject *value;
5488 value = POP();
5504 value with that result. Otherwise, just use value,
5507 result = conv_fn(value);
5508 Py_DECREF(value);
5513 value = result;
5516 /* If value is a unicode object, and there's no fmt_spec,
5517 then we know the result of format(value) is value
5521 if (PyUnicode_CheckExact(value) && fmt_spec == NULL) {
5523 result = value;
5526 result = PyObject_Format(value, fmt_spec);
5527 Py_DECREF(value);
6206 PyObject *value = args[i+argcount];
6255 if (PyDict_SetItem(kwdict, keyword, value) == -1) {
6258 Py_DECREF(value);
6263 PyObject *value = args[i+argcount];
6264 Py_DECREF(value);
6275 localsplus[j] = value;
6527 PyObject *type = NULL, *value = NULL;
6532 value = exc_info->exc_value;
6533 if (Py_IsNone(value) || value == NULL) {
6538 assert(PyExceptionInstance_Check(value));
6539 type = PyExceptionInstance_Class(value);
6541 Py_XINCREF(value);
6542 PyObject *tb = PyException_GetTraceback(value); /* new ref */
6543 _PyErr_Restore(tstate, type, value, tb);
6554 value = _PyObject_CallNoArgs(exc);
6555 if (value == NULL)
6557 if (!PyExceptionInstance_Check(value)) {
6561 type, Py_TYPE(value));
6566 value = exc;
6580 assert(value != NULL);
6603 PyException_SetCause(value, fixed_cause);
6606 _PyErr_SetObject(tstate, type, value);
6608 Py_DECREF(value);
6613 Py_XDECREF(value);
6784 PyObject *type, *value, *traceback, *orig_traceback, *arg;
6786 _PyErr_Fetch(tstate, &type, &value, &orig_traceback);
6787 if (value == NULL) {
6788 value = Py_None;
6789 Py_INCREF(value);
6791 _PyErr_NormalizeException(tstate, &type, &value, &orig_traceback);
6793 arg = PyTuple_Pack(3, type, value, traceback);
6795 _PyErr_Restore(tstate, type, value, orig_traceback);
6801 _PyErr_Restore(tstate, type, value, orig_traceback);
6805 Py_XDECREF(value);
6815 PyObject *type, *value, *traceback;
6817 _PyErr_Fetch(tstate, &type, &value, &traceback);
6821 _PyErr_Restore(tstate, type, value, traceback);
6826 Py_XDECREF(value);
7267 /* XXX should pass (type, value, tb) */ \
7526 PyObject *all, *dict, *name, *value;
7596 value = PyObject_GetAttr(v, name);
7597 if (value == NULL)
7600 err = PyDict_SetItem(locals, name, value);
7602 err = PyObject_SetItem(locals, name, value);
7604 Py_XDECREF(value);
7761 PyObject *type, *value, *traceback;
7762 PyErr_Fetch(&type, &value, &traceback);
7763 PyErr_NormalizeException(&type, &value, &traceback);
7764 if (PyErr_GivenExceptionMatches(value, PyExc_NameError)) {
7765 PyNameErrorObject* exc = (PyNameErrorObject*) value;
7769 (void)PyObject_SetAttr(value, &_Py_ID(name), obj);
7772 PyErr_Restore(type, value, traceback);