The Python Oracle

Should I use name mangling in Python?

This video explains
Should I use name mangling in Python?

--

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: Luau

--

Chapters
00:00 Question
01:17 Accepted answer (Score 228)
09:02 Answer 2 (Score 33)
13:12 Answer 3 (Score 17)
14:47 Answer 4 (Score 9)
16:01 Thank you

--

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

Question links:
[JBernardo's answer]: https://stackoverflow.com/questions/7456...

Accepted answer links:
[to avoid accidental overloading of methods and name conflicts with superclasses' attributes]: https://stackoverflow.com/questions/7052...
[Python is not Java]: http://dirtsimple.org/2004/12/python-is-...
[this article about the harms of using getters and setters]: http://www.javaworld.com/javaworld/jw-09...
[he said so, actually]: http://www.artima.com/weblogs/viewpost.j...

Answer 2 links:
[example]: https://docs.python.org/3/tutorial/class...
[PEP 8]: https://www.python.org/dev/peps/pep-0008/

--

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

--

Tags
#python #namingconventions