python_koans icon indicating copy to clipboard operation
python_koans copied to clipboard

AboutAttributeAccess: super would resolve to object

Open programmer-ke opened this issue 2 years ago • 0 comments

I was confused by the comment below because it looks to me like super() would resolve the the parent class which is object.

https://github.com/gregmalcolm/python_koans/blob/800cdf5db9e8539681723ca541e03b28e2117b28/koans/about_attribute_access.py#L106-L108

I substituted the line with return super().__getattribute__(attr_name) and it worked fine.

programmer-ke avatar Apr 07 '22 06:04 programmer-ke