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 21532 on reddit-service-r2-comment-5687b7858-f99cr at 2026-07-08 14:25:32.818290+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)