From d8d314cf03e7070cb615d1296365bd047ebd373a Mon Sep 17 00:00:00 2001 From: Carl-Ty Date: Wed, 17 Jan 2018 13:53:45 -0800 Subject: [PATCH 1/2] Update pep-0008.txt --- pep-0008.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pep-0008.txt b/pep-0008.txt index 1fe0d86d1bc..1c99942f100 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. From 9d9d5939f0383d982e6c2be65a2fc50253382599 Mon Sep 17 00:00:00 2001 From: Carl-Ty Date: Wed, 17 Jan 2018 15:10:23 -0800 Subject: [PATCH 2/2] Update pep-0008.txt --- pep-0008.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pep-0008.txt b/pep-0008.txt index 1c99942f100..107ab4b3669 100644 --- a/pep-0008.txt +++ b/pep-0008.txt @@ -915,7 +915,7 @@ you might want to do to indicate these globals are "module non-public"). Function and variable names -~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~~~~~~~~~~~ Function names should be lowercase, with words separated by underscores as necessary to improve readability.