Which way to say 'private'?
FBatista at uniFON.com.ar
Thu Aug 21 16:19:34 CEST 2003
#- There are 2 ways to indicate private members of classes, by
#- 1 or 2 underscore characters, the latter causing name mangling. My
#- question is: When would I use which kind to indicate privacy?
As a I read don't remember where, :p, to put 1 underscore is the same to
hang a "Do not disturb" sign in the door, to put 2 underscores is the same
to lock the door.
More information about the Python-list