What are the naming convention for private member variable, and private and public member function?
davea at ieee.org
Sun Sep 20 12:28:37 CEST 2009
Peng Yu wrote:
> It says in http://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.
Member functions are verbs or sometimes adjectives, while member
variables are nouns.
More information about the Python-list