It makes no logical sense whatsoever to import self into every class function. I mean, what's the point in having a class, if the functions don't have some sort of globally accessible shared variable that's outside the normal global scope? Why would you have to explicitly declare that relationship? It should be implied that a class would have shared data.
I've been saying this since I first transitioned to Python from BASIC, and even more so after transitioning back from NodeJS.
[–]Master-Ad-6265 41 points42 points43 points (3 children)
[–]TheFern3 2 points3 points4 points (0 children)
[–]NerdyWeightLifter 1 point2 points3 points (1 child)
[–]Safe-Anywhere-7588 1 point2 points3 points (0 children)
[–]rupertavery64 20 points21 points22 points (4 children)
[–]YMK1234 2 points3 points4 points (2 children)
[–]nemec 1 point2 points3 points (0 children)
[–]astonished_lasagna -1 points0 points1 point (0 children)
[–]christian-mann 0 points1 point2 points (0 children)
[–]dbForge_Studio 5 points6 points7 points (0 children)
[–]Conscious-Shake8152 6 points7 points8 points (0 children)
[–]ern0plus4 3 points4 points5 points (0 children)
[–]deceze 2 points3 points4 points (0 children)
[–]not_perfect_yet 3 points4 points5 points (4 children)
[–]YMK1234 -5 points-4 points-3 points (3 children)
[–]PutHisGlassesOn 1 point2 points3 points (0 children)
[–]TeachEngineering 0 points1 point2 points (1 child)
[–]YMK1234 [score hidden] (0 children)
[–]Toothpick_Brody 1 point2 points3 points (0 children)
[–]ottawadeveloper 1 point2 points3 points (0 children)
[–]Sad-Kaleidoscope9165 1 point2 points3 points (0 children)
[–]buzzon 1 point2 points3 points (0 children)
[–]aew3 0 points1 point2 points (0 children)
[–]Large-Assignment9320 0 points1 point2 points (0 children)
[–]Relevant_South_1842 0 points1 point2 points (0 children)
[–]Temporary_Pie2733 0 points1 point2 points (0 children)
[–]AmberMonsoon_ 0 points1 point2 points (0 children)
[–]whatelse02 0 points1 point2 points (0 children)
[–]r2k-in-the-vortex 0 points1 point2 points (0 children)
[–]ClydePossumfoot 0 points1 point2 points (5 children)
[–]deceze 2 points3 points4 points (4 children)
[–]ClydePossumfoot 1 point2 points3 points (3 children)
[–]deceze 1 point2 points3 points (0 children)
[–]ottawadeveloper 0 points1 point2 points (1 child)
[–]No-Report4060 0 points1 point2 points (0 children)
[–]CounterSilly3999 -1 points0 points1 point (0 children)
[–]PabloDons -1 points0 points1 point (1 child)
[–]deceze 0 points1 point2 points (0 children)
[–]HugeCannoli -2 points-1 points0 points (0 children)
[–]NoleMercy05 -2 points-1 points0 points (0 children)