Skip to content

Update naming_convention.rst #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/pages/naming_convention.rst
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ Python Naming Conventions
* Bad: data_structure, my_list, info_map, dictionary_for_the_purpose_of_storing_data_representing_word_definitions
* Good: user_profile, menu_options, word_definitions
* Don’t be a jackass and name things “O”, “l”, or “I”
* When using CamelCase names, capitalize all letters of an abbreviation (e.g. HTTPServer)
* When using CamelCase names, capitalize all letters of an acronym (e.g. HTTPServer)

2. Packages
===========
@@ -69,4 +69,4 @@ Python Naming Conventions
10. Constants
=============
* Constant names must be fully capitalized
* Words in a constant name should be separated by an underscore
* Words in a constant name should be separated by an underscore