Now you know about some important Python naming conventions that rely on using the underscore character (_
). You’ve learned how to differentiate between public and non-public names in Python code, write safe classes for subclassing purposes, and avoid name clashes in your classes.
In this video course, you’ve:
- Learned a few Python naming conventions that rely on using underscores (
_
) - Differentiated public vs non-public names using a single leading underscore
- Used double leading underscores to trigger name mangling in Python classes
- Explored other common uses cases of underscores in Python names