Python Style Rules - larry-nomad/rpmbuild GitHub Wiki
Maximum line length is 119 characters.
long_str = ('Kingdom far far far'
'far faraway')
if (width == 0 and height == 0 and
color == ’red’ and emphasis == ’strong’):
Indent your code blocks with 4 spaces.
Naming
| Type | Public | Private |
|---|---|---|
| Packages | lower_with_under | |
| Modules | lower_with_under | _lower_with_under |
| Classes | CapWords | _CapWords |
| Exceptions | CapWords | |
| Functions | firstLowerCapWords() | firstLowerCapWords() |
| Global/Class Constants | CAPS_WITH_UNDER | _CAPS_WITH_UNDER |
| Global/Class Variables | lower_with_under | _lower_with_under |
| Instance Variables | lower_with_under | _lower_with_under (protected) or __lower_with_under (private) |
| Method Names * | lower_with_under() | _lower_with_under() (protected) or __lower_with_under() (private) |
| Function/Method Parameters | lower_with_under | |
| Local Variables | lower_with_under |