Possible Duplicate:
The meaning of a single- and a double-underscore before an object name in Python
I had a question when I was reading the python documentation on private variables link.
So the documentation tells that it is a convention to name private variables with an underscore but python does not make the field private.
>>> class a():
def __init__(self):
self.public = 11
self._priv = 12
>>> b = a()
>>> print b._priv
>>> 12
I wanted to know if there is a way in which I can make a variable "truly" private in python.