+ 1
How to method or variable fully private in class in python
4 odpowiedzi
+ 2
Hm... HonFu is right. Python has no truly private variable for class
https://www.sololearn.com/learn/Python/2471/
0
Python is not meant to have that.
When you want a variable to be private, you let them start with a _. This is the signal for another coder not to touch it.
0
But it can be access out side the class