type() type()의 경우 파이썬에서 기본적으로 제공하는 자료형에 대해 type check가 가능하다. type(1) is int # True type([]) is list # True type('abc') is str # True type(1) is type(2) # True 하지만, type()은 상속의 경우가 고려되지 않아 상속받은 클래스의 인스턴스는 구분할 수 없다. class A(): pass class B(A): pass a = A() b = B() type(a) is A # True type(b) is B # True type(b) is A # False 이러한 문제를 해결하기 위해서는 어떤 메서드를 사용해야 할까? isInstance() type()의 한계점을 isInstance()로..