Home | History | Annotate | Download | only in Objects

Lines Matching defs:__bases__

2772  * 0. creating the __bases__ static string could get a MemoryError

2773 * 1. getattr(cls, '__bases__') could raise an AttributeError
2774 * 2. getattr(cls, '__bases__') could raise some other exception
2775 * 3. getattr(cls, '__bases__') could return a tuple
2776 * 4. getattr(cls, '__bases__') could return something other than a tuple
2782 * returning NULL. If an object other than a tuple comes out of __bases__,
2798 static PyObject *__bases__ = NULL;
2801 if (__bases__ == NULL) {
2802 __bases__ = PyString_InternFromString("__bases__");
2803 if (__bases__ == NULL)
2806 bases = PyObject_GetAttr(cls, __bases__);