Lines Matching refs:self
18 unionobject_dealloc(PyObject *self)
20 unionobject *alias = (unionobject *)self;
22 _PyObject_GC_UNTRACK(self);
26 Py_TYPE(self)->tp_free(self);
30 union_traverse(PyObject *self, visitproc visit, void *arg)
32 unionobject *alias = (unionobject *)self;
39 union_hash(PyObject *self)
41 unionobject *alias = (unionobject *)self;
159 _Py_union_type_or(PyObject* self, PyObject* other)
161 if (!is_unionable(self) || !is_unionable(other)) {
166 PyObject **items1 = get_types(&self, &size1);
173 Py_INCREF(self);
174 return self;
251 union_repr(PyObject *self)
253 unionobject *alias = (unionobject *)self;
279 union_getitem(PyObject *self, PyObject *item)
281 unionobject *alias = (unionobject *)self;
290 PyObject *newargs = _Py_subs_parameters(self, alias->args, alias->parameters, item);
320 union_parameters(PyObject *self, void *Py_UNUSED(unused))
322 unionobject *alias = (unionobject *)self;
348 union_getattro(PyObject *self, PyObject *name)
350 unionobject *alias = (unionobject *)self;
361 return PyObject_GenericGetAttr(self, name);
365 _Py_union_args(PyObject *self)
367 assert(_PyUnion_Check(self));
368 return ((unionobject *) self)->args;