Created
March 17, 2020 21:18
-
-
Save ychennay/de6c9dfa2b068b3e02864078ca34d707 to your computer and use it in GitHub Desktop.
Data Descriptor Behavior
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
student = Student() | |
print(f"\nFirst access of name attribute on student: {student.name}") | |
student.__setattr__("name", "Yu Chen") | |
print(f"\n{student} instance symbol table: {student.__dict__}") | |
print(f"\nSecond access of name attribute on student: {student.name}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment