What are the naming convention for private member variable, and private and public member function?
sajmikins at gmail.com
Mon Sep 21 06:49:27 CEST 2009
On Sep 19, 11:33 pm, Peng Yu <pengyu... at gmail.com> wrote:
> It says inhttp://www.python.org/dev/peps/pep-0008/
> " Method Names and Instance Variables
> Use the function naming rules: lowercase with words separated by
> underscores as necessary to improve readability.
> Use one leading underscore only for non-public methods and
> I am wondering what is the different between member function and
> member variable in term of naming convention.
The naming convention for both to indicate that attributes of a class
should be considered internal is a leading underscore.
More information about the Python-list