
Python · Naming Convention
Python Naming Convention The style guide for Python is based on Guido’s naming convention recommendations. List of covered sections: Class Naming Constant Naming Method Naming …
Method Naming · Naming Convention
Private Method Python does not support privacy directly. This naming convention is used as a weak internal use indicator. Should follow the above naming conventions Should use a leading …
Underscore · Naming Convention
The underscore (_) has special meaning in Python. For ignoring values: If you do not need a specific value (s) while unpacking an object, just assign the value (s) to an underscore. x, _, y …
Package Naming · Naming Convention
Python module Convention > Package Naming snake_case Should be in lowercase. If the name contains multiple words, an underscore (_) should separate it.E.g. expression_engine The …
Class Naming · Naming Convention
Python Naming Convention > Class Naming PascalCase Begin with an uppercase letter Preferably a noun e.g. Car, Bird, MountainBike Avoid acronyms and abbreviations class Car: …
Exception ( Error ) Naming · Naming Convention
Exceptions should be classes and hence the class naming convention should be used. Add a suffix "Error" on your exception names, provided the exception is actually an error.
Variable Naming · Naming Convention
This naming convention is used as a weak internal use indicator. Should follow the above naming conventions Should use a leading underscore (_) to distinguish between "public" and "private" …
Introduction · Naming Convention
Welcome - The Naming Convention Project The Naming Convention Project is an effort to identify, collect and maintain a set of guidelines for best naming practices. How we work: We …
Constant Naming · Naming Convention
Python Naming Convention > Constant Naming SCREAMING_SNAKE_CASE Should be all uppercase letters e.g. AGE, HEIGHT If the name contains multiple words, it should be …
Module Naming · Naming Convention
Python module Convention > Module Naming snake_case Should be all in lowercase letters such as requests, math If contains multiple words, it should be separated by underscores (_) e.g. …