I and my friend debated which prefix is a convention and the preferred way to use when you create attributes to a class and want to tell that they are private
.
We know there isn't a real private
modifier in python, and in both prefixes, _
and __
every programmer will know how to get/set to the attributes anyway.
However, what will be the best way to tell others python programmers that the attribute is private? _
or __
?