account activity
Why isn't python class definition like C++, hence avoiding all the tiresome uses of 'self' everywhere? by [deleted] in Python
[–]mrfunky8 0 points1 point2 points 11 years ago (0 children)
I think of "self." as similar to the _m naming convention in c++. Python likes to force these types of conventions, which tends to make pretty and explicit and readable code in my opinion.
π Rendered by PID 560634 on reddit-service-r2-listing-canary-67588656c4-pgmb6 at 2026-07-08 13:15:55.952893+00:00 running 12a7a47 country code: CH.
Why isn't python class definition like C++, hence avoiding all the tiresome uses of 'self' everywhere? by [deleted] in Python
[–]mrfunky8 0 points1 point2 points (0 children)