2 Antworten
+ 2
It is a a consequence of Python's design. Also, I like the rationale that it avoids verbose codes. Here is a nice explanation
I'm sure there are pros and cons to this, but 'when in Rome do as the Romans do'.
https://stackoverflow.com/questions/7456807/python-name-mangling
https://dirtsimple.org/2004/12/python-is-not-java.html
+ 2
Yup, in python, there's really only the suggestion of private