diff --git a/pep-0008.txt b/pep-0008.txt index 1fe0d86d1bc..107ab4b3669 100644 --- a/pep-0008.txt +++ b/pep-0008.txt @@ -914,12 +914,14 @@ older convention of prefixing such globals with an underscore (which you might want to do to indicate these globals are "module non-public"). -Function Names -~~~~~~~~~~~~~~ +Function and variable names +~~~~~~~~~~~~~~~~~~~~~~~~~~~ Function names should be lowercase, with words separated by underscores as necessary to improve readability. +Variable names follow the same convention as function names. + mixedCase is allowed only in contexts where that's already the prevailing style (e.g. threading.py), to retain backwards compatibility.