Lines Matching +full:where +full:- +full:object
13 # 2.2.1 where the exception wasn't caught but it also wasn't being cleared
15 # isinstance(inst, cls) where:
17 # - cls isn't a type, or a tuple
18 # - cls has a __bases__ attribute
19 # - inst has a __class__ attribute
20 # - inst.__class__ as no __bases__ attribute
22 # Sounds complicated, I know, but this mimics a situation where an
26 class I(object):
28 # This must return an object that has no __bases__ attribute
32 class C(object):
42 class E(object):
47 class I(object):
52 class C(object):
59 # Here's a situation where getattr(cls, '__bases__') raises an exception.
64 class C(object):
76 class C(object):
86 class C(object):
100 # issubclass() instead of isinstance() -- really PyObject_IsSubclass()
104 class C(object):
114 class C(object):
123 # Like above, but test the second branch, where the __bases__ of the
125 # return a valid __bases__, and it's okay for it to be a normal --
126 # unrelated by inheritance -- class.
130 class C(object):
140 class C(object):
150 class AbstractClass(object):
161 class AbstractInstance(object):