mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Doc: Fix: Proper UpperCamelCase and lowercase. (GH-14644)
Initial report by Michael Blankenship on docs@
This commit is contained in:
parent
e676244235
commit
2da622ff77
1 changed files with 1 additions and 1 deletions
|
@ -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).
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue