Python source code and some other books, naming a variety of personalities, not a more uniform naming conventions. So I summed up some, for reference.
Module Name:
Lowercase letters, dividing between words with _
ad_stats.py
Package Name:
Same as the module name
Class Name:
Capitalize the first letter of the word
Adstats
Configutil
global variable names (class variables, equivalent to static variables in Java):
Uppercase letters, dividing between words with _
Number
Color_write
Common variables:
Lowercase letters, dividing between words with _
This_is_a_var
Instance variable:
Start with _, the rest is the same as the normal variable
_price
_instance_var
Private instance variable (external access will error):
Starts with __ (2 underscores), and the other is the same as the normal variable
__private_var
Proprietary variables:
__ Begins, __ ends, is usually python's own variable, do not name it in this way
__doc__
__class__
Common functions:
As with normal variables:
Get_name ()
Count_number ()
Ad_stat ()
Private Function (external access will error):
Starts with __ (2 underscores), and the rest is the same as the normal function
__get_name ()
Python Variable naming conventions