The Python Oracle

Difference between __getattr__ and __getattribute__

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

--

Track title: CC B Schuberts Piano Sonata No 16 D

--

Chapters
00:00 Question
00:33 Accepted answer (Score 635)
01:34 Answer 2 (Score 221)
05:21 Answer 3 (Score 19)
06:03 Answer 4 (Score 15)
06:45 Thank you

--

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

Question links:
[python documentation]: http://docs.python.org/reference/datamod...

Answer 2 links:
[Ned Batchelder's explanation]: https://stackoverflow.com/a/3278104/3798...

Answer 3 links:
[9. Classes]: https://docs.python.org/2/tutorial/class...
[NewClassVsClassicClass]: https://wiki.python.org/moin/NewClassVsC...
[What is the difference between old style and new style classes in Python?]: https://stackoverflow.com/questions/5486...

--

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

--

Tags
#python #getattr #getattribute

#avk47