[Python-checkins] Doc: Fix: Proper UpperCamelCase and lowercase. (GH-14644)
Julien Palard
webhook-mailer at python.org
Mon Jul 8 17:06:45 EDT 2019
https://github.com/python/cpython/commit/2da622ff77a763327895656779370b80a833d95c
commit: 2da622ff77a763327895656779370b80a833d95c
branch: master
author: Julien Palard <julien at palard.fr>
committer: GitHub <noreply at github.com>
date: 2019年07月08日T23:06:32+02:00
summary:
Doc: Fix: Proper UpperCamelCase and lowercase. (GH-14644)
Initial report by Michael Blankenship on docs@
files:
M Doc/tutorial/controlflow.rst
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst
index 79111f8518d9..92c042e26dfb 100644
--- a/Doc/tutorial/controlflow.rst
+++ b/Doc/tutorial/controlflow.rst
@@ -920,7 +920,7 @@ extracted for you:
bracketing constructs: ``a = f(1, 2) + g(3, 4)``.
* Name your classes and functions consistently; the convention is to use
- ``CamelCase`` for classes and ``lower_case_with_underscores`` for functions
+ ``UpperCamelCase`` for classes and ``lowercase_with_underscores`` for functions
and methods. Always use ``self`` as the name for the first method argument
(see :ref:`tut-firstclasses` for more on classes and methods).
More information about the Python-checkins
mailing list