#!/usr/bin/env python3

class A(object):
    pass
class B(A):
    pass

b = B()

print(isinstance(b,B))
print(isinstance(b,A))

print(type(b) is B)
print(type(b) is A)

f2a5c8daaef9c273763df77af2b79cee429aa707
<mask token>


class B(A):
    pass


<mask token>

class A(object):
    pass


class B(A):
    pass


<mask token>

class A(object):
    pass


class B(A):
    pass


<mask token>
print(isinstance(b, B))
print(isinstance(b, A))
print(type(b) is B)
print(type(b) is A)

class A(object):
    pass


class B(A):
    pass


b = B()
print(isinstance(b, B))
print(isinstance(b, A))
print(type(b) is B)
print(type(b) is A)

#!/usr/bin/env python3

class A(object):
    pass
class B(A):
    pass

b = B()

print(isinstance(b,B))
print(isinstance(b,A))

print(type(b) is B)
print(type(b) is A)
