[webkit-dev] pep8 style for python code

Eric Seidel eric at webkit.org
Fri Jan 22 12:48:49 PST 2010


I support not inventing a new style and making the global python style
(PEP8) WebKit's official python style (it's been our defacto style for
a while).

We need to update the coding-style.html page to note this.

On Fri, Jan 22, 2010 at 12:33 PM, Adam Barth <abarth at webkit.org> wrote:
> If you don't care about coding style, you can ignore this message.
>
> We're starting to grow a bunch of python code in the project.  I'd
> like to propose that we use the PEP8 style guide for this python code:
>
> http://www.python.org/dev/peps/pep-0008/
>
> PEP8 is more or less the "official" style guide for Python.  The main
> differences between PEP8 and our style guide in other languages are:
>
> 1) use of unix_hack_style identifier names for methods and variables
> (but not class names), and
> 2) a maximum line length of 79 characters.
>
> I'd rather take PEP8 as a whole instead of picking a choosing various
> requirements.  There's a handy automatic style checker that will help
> us bring our existing code into compliance:
>
> http://github.com/jcrocholl/pep8
>
> Adam
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>


More information about the webkit-dev mailing list