Re:Ask HN: Why do you make class members private?
by Saphyel on Monday July 25, 2022 @03:35PM
(#32229804)
> Making variables and methods private means making them inaccessible outside the class and I gave the typical reasons/best practices for that.
The point they are making is in python there's no private method, everything is public. There's only a convention of "avoid using anything starting with "_"
The point they are making is in python there's no private method, everything is public. There's only a convention of "avoid using anything starting with "_"