diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-07-08 21:13:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-08 21:13:57 (GMT) |
commit | 975d4d3651c5fe9422801d8f7145486b23d46a13 (patch) | |
tree | 23ced81d70a03dace1ab9d1f46fbb2a5ff537efa /Doc/tutorial | |
parent | cdada40b23b1f7f527797ba7cb14c25820b05981 (diff) | |
download | cpython-975d4d3651c5fe9422801d8f7145486b23d46a13.zip cpython-975d4d3651c5fe9422801d8f7145486b23d46a13.tar.gz cpython-975d4d3651c5fe9422801d8f7145486b23d46a13.tar.bz2 |
Doc: Fix: Proper UpperCamelCase and lowercase. (GH-14644)
Initial report by Michael Blankenship on docs@
(cherry picked from commit 2da622ff77a763327895656779370b80a833d95c)
Co-authored-by: Julien Palard <julien@palard.fr>
Diffstat (limited to 'Doc/tutorial')
-rw-r--r-- | Doc/tutorial/controlflow.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index 79111f8..92c042e 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). |