Home | History | Annotate | Download | only in Objects

Lines Matching defs:__bases__

2786  * 0. creating the __bases__ static string could get a MemoryError
2787 * 1. getattr(cls, '__bases__') could raise an AttributeError
2788 * 2. getattr(cls, '__bases__') could raise some other exception
2789 * 3. getattr(cls, '__bases__') could return a tuple
2790 * 4. getattr(cls, '__bases__') could return something other than a tuple
2796 * returning NULL. If an object other than a tuple comes out of __bases__,
2812 static PyObject *__bases__ = NULL;
2815 if (__bases__ == NULL) {
2816 __bases__ = PyString_InternFromString("__bases__");
2817 if (__bases__ == NULL)
2820 bases = PyObject_GetAttr(cls, __bases__);