-
Notifications
You must be signed in to change notification settings - Fork 0
Error Alias
Vinicius Reif Biavatti edited this page Jul 25, 2022
·
1 revision
- Use the 'err' name to reference the error
- When the 'err' name is already used, add an underscore as suffix
✅ Do
try:
...
except ValueError as err:
...
try:
...
except ValueError as err:
try:
...
except ValueError as err_:
...
❌ Don't
try:
...
except ValueError as error:
...
- Home
- Structural Naming Conventions
- Format Conventions
- Code Naming Conventions
- Inheritance
- Access Modifiers
- Importation
- Functions and Methods
- Documentation
- Resources