In the Python Tutorial, Section 9.4, it is said that
"Data attributes override method attributes with the same name."
But in my testing as follows:
I think A.i should be the number 10 but it is the method. There must be something I misunderstand. Would you please tell me why?
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.