Programming‎ > ‎Python‎ > ‎

Python Naming Convention

PEP 0008 tells you that:

- modules (filenames) should have short, all-lowercase names, 
and they can contain underscores;
- packages (directories) should have short, all-lowercase names, 
preferably without underscores;
- classes should use the CapWords convention.
- joined_lower for functions, methods, attributes, variables
- joined_lower or ALL_CAPS for constants
- StudlyCaps for classes

The Python standard library are also following the similar naming convention.

Refer string library

Comments