Python Style Guide for MyPaint

General Python Coding

 * Four spaces per indent; no tabs.


 * Please try to follow the Google Python Style Guide. It's well thought out and thorough, while not being onerous.


 * Constantine Lignos's Anti-Patterns in Python Programming covers some common coding pitfalls.


 * Make your code pretty and readable! Brandon Rhodes's A Python Æsthetic is a great place to start.


 * PEP 8 applies generally.

Docstrings
We seem to be setting on Sphinx's autodoc syntax for writing docstrings. Where it doesn't contradict, plase follow PEP 257 too.