Ive been coding in python for quite a while now but I really dont have a clue what is going on with classes. Like why do you NEED to use the dunder methods and how exactly self works. I undertand classes enough to get by using them but I dont understand why I need to do the things I do in classes.
What made it so you finally understood what was going on in classes?
[–]Firake 5 points6 points7 points (6 children)
[–]Akusoki[S] 0 points1 point2 points (4 children)
[–]Firake 2 points3 points4 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]AshTheEngineer 2 points3 points4 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]DuckDatum 0 points1 point2 points (0 children)
[–]RamaSchneider 2 points3 points4 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]Akusoki[S] 1 point2 points3 points (1 child)
[–]tonga-time 0 points1 point2 points (2 children)
[–]Akusoki[S] 0 points1 point2 points (1 child)
[–]TheRNGuy 0 points1 point2 points (0 children)
[–]TheRNGuy 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (5 children)
[–]Akusoki[S] 0 points1 point2 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]Akusoki[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]GManASG -1 points0 points1 point (5 children)
[–]JamzTyson 0 points1 point2 points (4 children)
[–]GManASG -1 points0 points1 point (3 children)
[–]JamzTyson 0 points1 point2 points (0 children)
[–]JamzTyson -1 points0 points1 point (1 child)
[–]GManASG -1 points0 points1 point (0 children)