The style guide for Python is based on Guido’s naming convention recommendations.
List of covered sections:
- Class Naming
- Constant Naming
- Method Naming
- Module Naming
- Variable Naming
- Package Naming
- Exception Naming
- Underscore
| Type | Public | Internal |
|---|---|---|
| Packages | lower_with_under |
|
| Modules | lower_with_under |
_lower_with_under |
| Classes | CapWords |
_CapWords |
| Exceptions | CapWords |
|
| Functions | lower_with_under() |
_lower_with_under() |
| Global/Class Constants | CAPS_WITH_UNDER |
_CAPS_WITH_UNDER |
| Global/Class Variables | lower_with_under |
_lower_with_under |
| Instance Variables | lower_with_under |
_lower_with_under |
| Method Names | lower_with_under() |
_lower_with_under() |
| Function/Method Parameters | lower_with_under |
|
| Local Variables | lower_with_under |
Missing something? Please contribute here by reading this guide.