Python에서 인스턴스 재 분류 외부 라이브러리에서 제공하는 클래스가 있습니다. 이 클래스의 하위 클래스를 만들었습니다. 또한 원래 클래스의 인스턴스가 있습니다. 이제 인스턴스에 이미있는 속성을 변경하지 않고이 인스턴스를 내 하위 클래스의 인스턴스로 전환하려고합니다 (내 하위 클래스가 무시하는 속성 제외). 다음 솔루션이 작동하는 것 같습니다. # This class comes from an external library. I don't (want) to control # it, and I want to be open to changes that get made to the class # by the library provider. class Programmer(object): def __init__(..