Which way to say 'private'?

Daniel Klein danielk at aracnet.com
Thu Aug 21 08:38:43 EDT 2003


There are 2 ways to indicate private members of classes, by prepending
1 or 2 underscore characters, the latter causing name mangling. My
question is: When would I use which kind to indicate privacy?

Thanks,
Daniel Klein
Member of the Dead Parrot Society




More information about the Python-list mailing list