Confirmed users
407
edits
Teodosia.pop (talk | contribs) |
Teodosia.pop (talk | contribs) |
||
| Line 22: | Line 22: | ||
def method(self,parameter) | def method(self,parameter) | ||
</pre> | </pre> | ||
**Lines should try not to have more than 100 characters. This allows 2 files to be side by side with no overlap for easier development.(I base this on MacVim on my MBP) | **Lines should try not to have more than 100 characters. This allows 2 files to be side by side with no overlap for easier development.(I base this on MacVim on my MBP) | ||
**Indenting should be a soft tab(4 spaces) as common with in Python. Do not mix tabs and spaces | **Indenting should be a soft tab(4 spaces) as common with in Python. Do not mix tabs and spaces | ||
**There should be no whitespace at the end of the file(as per PEP8) | **There should be no whitespace at the end of the file(as per PEP8) | ||
**Comments should be on the line above. Remember to update comments when changing code so that code matches the comments. | **Comments should be on the line above. Remember to update comments when changing code so that code matches the comments. | ||
**Class names should be in Pascal style as this is Python idiomatic | **Class names should be in Pascal style as this is Python idiomatic | ||