-
Notifications
You must be signed in to change notification settings - Fork 0
Magic Methods
Vinicius Reif Biavatti edited this page Jul 25, 2022
·
1 revision
- Use a good representation name
- Use two underscores (aka dunder) "__" as prefix and suffix
- Use underscore to separate
- Use type hints
- Do not use camel case
- Do not use special symbols
- Do not use capital letters
✅ Do
class DataProcessor:
def __init__(self) -> None:
...
❌ Don't
class DataProcessor:
def init(self) -> None:
...
- Home
- Structural Naming Conventions
- Format Conventions
- Code Naming Conventions
- Inheritance
- Access Modifiers
- Importation
- Functions and Methods
- Documentation
- Resources