The Python Oracle

Why does this parent class setter call use type(self) rather than self?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 5 Looping

--

Chapters
00:00 Question
03:50 Accepted answer (Score 3)
05:36 Thank you

--

Full question
https://stackoverflow.com/questions/6651...

Question links:
[Python @property inheritance the right way]: https://gist.github.com/Susensio/9792595...
[super([type[, object-or-type]])]: https://docs.python.org/3/library/functi...
[Supercharge Your Classes With Python super()]: https://realpython.com/python-super/#a-s...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #super #pythonclass

#avk47