-
Notifications
You must be signed in to change notification settings - Fork 0
Reserved Words
Vinicius Reif Biavatti edited this page Jul 25, 2022
·
1 revision
- Never replace a python reserved word or builtin word as name for any artifact
- Use underscore "_" as suffix
- When the name is already used, add an underscore as suffix
✅ Do
from_: str = 'Hello'
def input_(message: str) -> Any:
...
❌ Don't
any: bool = True # any is a builtin function
def sum(x: int, y: int) -> int: # sum is a builtin function
...
- Home
- Structural Naming Conventions
- Format Conventions
- Code Naming Conventions
- Inheritance
- Access Modifiers
- Importation
- Functions and Methods
- Documentation
- Resources