Lines Matching refs:PyObject
16 static PyObject *ThreadError;
17 static PyObject *str_dict;
25 PyObject *in_weakreflist;
32 PyObject_ClearWeakRefs((PyObject *) self);
43 static PyObject *
44 lock_PyThread_acquire_lock(lockobject *self, PyObject *args)
69 static PyObject *
92 static PyObject *
222 PyObject *localdict; /* Borrowed reference! */
223 PyObject *weakreflist; /* List of weak references to self */
230 PyObject_ClearWeakRefs((PyObject *) self);
231 Py_TYPE(self)->tp_free((PyObject*)self);
265 PyObject *key;
266 PyObject *args;
267 PyObject *kw;
268 PyObject *weakreflist; /* List of weak references to self */
270 PyObject *dummies;
272 PyObject *wr_callback;
276 static PyObject *_ldict(localobject *self);
277 static PyObject *_localdummy_destroyed(PyObject *meth_self, PyObject *dummyweakref);
281 static PyObject *
284 PyObject *tdict, *ldict = NULL, *wr = NULL;
302 wr = PyWeakref_NewRef((PyObject *) dummy, self->wr_callback);
312 r = PyDict_SetItem(tdict, self->key, (PyObject *) dummy);
327 static PyObject *
328 local_new(PyTypeObject *type, PyObject *args, PyObject *kw)
331 PyObject *wr;
368 wr = PyWeakref_NewRef((PyObject *) self, NULL);
379 return (PyObject *)self;
423 PyObject_ClearWeakRefs((PyObject *) self);
429 Py_TYPE(self)->tp_free((PyObject*)self);
433 static PyObject *
436 PyObject *tdict, *ldict, *dummy;
452 Py_TYPE(self)->tp_init((PyObject*)self,
470 local_setattro(localobject *self, PyObject *name, PyObject *v)
472 PyObject *ldict;
489 return _PyObject_GenericSetAttrWithDict((PyObject *)self, name, v, ldict);
492 static PyObject *local_getattro(localobject *, PyObject *);
538 static PyObject *
539 local_getattro(localobject *self, PyObject *name)
541 PyObject *ldict, *value;
558 return _PyObject_GenericGetAttrWithDict((PyObject *)self, name, ldict);
564 return _PyObject_GenericGetAttrWithDict((PyObject *)self, name, ldict);
571 static PyObject *
572 _localdummy_destroyed(PyObject *localweakref, PyObject *dummyweakref)
574 PyObject *obj;
586 PyObject *ldict;
602 PyObject *func;
603 PyObject *args;
604 PyObject *keyw;
613 PyObject *res;
626 PyObject *file;
627 PyObject *exc, *value, *tb;
653 static PyObject *
654 thread_PyThread_start_new_thread(PyObject *self, PyObject *fargs)
656 PyObject *func, *args, *keyw = NULL;
718 static PyObject *
719 thread_PyThread_exit_thread(PyObject *self)
732 static PyObject *
733 thread_PyThread_interrupt_main(PyObject * self)
749 static PyObject *
750 thread_PyThread_allocate_lock(PyObject *self)
752 return (PyObject *) newlockobject();
761 static PyObject *
762 thread_get_ident(PyObject *self)
784 static PyObject *
785 thread__count(PyObject *self)
802 static PyObject *
803 thread_stack_size(PyObject *self, PyObject *args)
905 PyObject *m, *d;
926 PyDict_SetItemString(d, "LockType", (PyObject *)&Locktype);
929 if (PyModule_AddObject(m, "_local", (PyObject *)&localtype) < 0)