David Marker wrote on Fri Aug 15 2008 at 08:45:57 GMT-0700 (PDT): > UVR wrote: >> Is there an ON coding style guide for python? >> > I don't think we have an official answer to that yet.
Is there a coding style in consideration? > Python has had its own style for a long time [1], > and there are even style checkers for it [2]. > > Then again Sun has had a C style guideline for even > longer that predisposes our engineers to tabs (with > editors set to displaying them as 8 spaces wide) [3]. > > [...] This is precisely what prompted my email. > We are not using any tool to enforce python style in > ON at this time. It will obviously be advantageous for ON to standardize on one python style. But meanwhile, is it acceptable to simply use the style in [1] below? -Ravindra. > [1] http://www.python.org/dev/peps/pep-0008/ > [2] http://svn.browsershots.org/trunk/devtools/pep8/ > [3] > http://opensolaris.org/os/community/documentation/getting_started_docs/cstyle.ms.pdf > > > Section 6, "Indentation"
