Lines Matching defs:context
146 context chain, while taking care not to hang on
148 This is O(chain length) but context chains are
152 PyObject *o = exc_value, *context;
155 while ((context = PyException_GetContext(o))) {
156 Py_DECREF(context);
157 if (context == value) {
161 o = context;
572 set the context associated with it.
575 any cycles in the exception context chain. */
610 /* Set the currently set exception's context to the given exception.
613 exc_info will be used for the context instead.
616 Also, this function won't create any cycles in the exception context
647 /* _PyErr_SetObject sets the context from PyThreadState. */