이번 포스팅에서는 파이썬의 특수 메소드 중 비교 연산자 관련 표현 시 사용하는 메소드에 대하여 공부를 해보고자 한다. __eq__ 메소드 ' == '로 객체의 내용을 비교할 때 정의해야 한다. __eq__(self, other) : → self == other __lt__ / __gt__ 메소드 __lt__(self, other) : → self other max( )에서 인수로 사용할 경우 정의해야 한다. 그 외 비교 연산자 관련 메소드 __ge__(self, other): → self >= other __le__(self, other): → self other가 Person 타입인지 확인) def __eq__(self, other): result = False if isinstance(other, P..