Reference Fluent Python GeeksforGeeks Descriptor HowTo Guide(Raymond Hettinger) Stackoverflow 디스크립터(descriptor) - [1]편에 이어서 작성한다. https://tcitr-antoliny.tistory.com/16 [파이썬]디스크립터(descriptor) - [1] Reference Fluent Python geeksforgeeks Descriptor HowTo Guide(Raymond Hettinger) Stackoverflow 디스크립터는 독립적인 하나의 클래스가 있다면 해당 클래스의 특정 속성을 다른 클래스(디스크립터)가 관리할.. tcitr-antoliny.tistory.com [1]편에는 디스크립터에 대한 기본..
Reference Fluent Python geeksforgeeks Descriptor HowTo Guide(Raymond Hettinger) Stackoverflow 디스크립터는 독립적인 하나의 클래스가 있다면 해당 클래스의 특정 속성을 다른 클래스(디스크립터)가 관리할 수 있게 한다. 사실 말로만 보면 무슨 소리인지 모르겠지만 코드를 보면서 알아가는 게 더 낫다. 디스크립터(descriptor) class Student: def __init__(self, name, age, major): self.name = name self.age = age self.major = major antoliny = Student('Antoliny', 23, 'Computer Science') 굉장히 간단한 Studen..