The Python Oracle

How to avoid explicit 'self' 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: Puzzle Game Looping

--

Chapters
00:00 Question
01:21 Accepted answer (Score 113)
03:24 Answer 2 (Score 67)
05:40 Answer 3 (Score 34)
06:04 Answer 4 (Score 23)
06:41 Thank you

--

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

Question links:
[pygame tutorials]: http://www.pygame.org/wiki/tutorials
[Python - why use “self” in a class?]: https://stackoverflow.com/questions/4758...
[Why do you need explicitly have the “self” argument into a Python method?]: https://stackoverflow.com/questions/6828...

Answer 1 links:
[this question]: https://stackoverflow.com/questions/1163...
[this blog post]: http://stupidpythonideas.blogspot.com/20...
[no way]: https://stackoverflow.com/questions/1450...

--

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

--

Tags
#python #self

#avk47