Lines Matching defs:local
94 PyObject *local;
134 /* Invariant: NULL or the most recently accessed thread local context */
1514 /* Global, thread local and temporary contexts */
1518 * Thread local storage currently has a speed penalty of about 4%.
1544 /* We already have a thread local context. */
1552 /* Set up a new thread local context. */
1575 /* Return borrowed reference to thread local context. */
1609 /* Set the thread local context to a new context, decrement old reference */
1698 /* Set the thread local context to a new context, decrement old reference */
1732 * to the local (inner) context. */
1743 PyObject *local = Py_None;
1756 if (!PyArg_ParseTupleAndKeywords(args, kwds, "|OOOOOOOOO", kwlist, &local,
1760 if (local == Py_None) {
1761 local = global;
1763 else if (!PyDecContext_Check(local)) {
1775 self->local = context_copy(local, NULL);
1776 if (self->local == NULL) {
1785 self->local, prec, rounding,
1801 Py_XDECREF(self->local);
1811 ret = PyDec_SetCurrentContext(NULL, self->local);
1817 Py_INCREF(self->local);
1818 return self->local;