Why less emphasis on private data?
Sun Jan 7 16:27:22 CET 2007
Thomas Ploch <Thomas.Ploch at gmx.net> writes:
> Me neither, although I have to say that the '__' prefix comes pretty
> close to being 'private' already. It depends on the definition of
> private. For me, private means 'not accessible from outside the
__x = 3
__x = 4 # ok
__x = 5 # oops!
Consider that the above three class definitions might be in separate
files and you see how clumsy this gets.
More information about the Python-list