From: Brian M. <br...@gr...> - 2009-12-13 04:13:28
|
Hi everyone, I was just checking off one of my policy related tasks for 3.2 (http://gramps-project.org/wiki/index.php?title=3.2_Roadmap#Policy_changes) and was reminded about our PEP8 policy (http://gramps-project.org/wiki/index.php?title=Programming_Guidelines#PEP8). PEP8 is a wonderful document and deserves to be read by every developer once per year. I recommend that everyone take a moment now to re-read PEP8: http://www.python.org/dev/peps/pep-0008/ Worthy of special mention is this statement: "Imports are always put at the top of the file, just after any module comments and docstrings, and before module globals and constants." Keeping imports at the top of the file helps to keep dependencies explicit so that we can work to reduce coupling between modules. Happy hacking, ~Brian |