Hi list I have been working with Luiz Motta in the 'Custom db query' plugin and we came about the dilemma of how to best format our Python code.
Looking around the QGIS wiki, we found the developers manual [1] and read through the coding guidelines, but the rules defined in it are for C++ programming and for QGIS core. We couldn't find anything related to Python and plugins. Has this been debated in the past? Is there a recommended style for formatting Python code in QGIS plugins? I usually follow the recommendation in the PEP8 [2], the official style guide for Python. But Luiz argues (a valid point I guess) that if we were to follow the C++ standard it would be more consistent with the rest of the code. I guess we are in a state where I have my opinion, he has his own, and we'd like to reach a consensus by surveying your thoughts on this subject. Also it seems like a good idea to raise this issue now, with the upcoming possibility of having multiple people collaborating on plugins. Thanks [1] - http://www.qgis.org/wiki/Developers_Manual [2] - http://www.python.org/dev/peps/pep-0008/ -- ___________________________ ___ __ Ricardo Garcia Silva _______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
