[webkit-dev] pep8 style for python code

Dirk Pranke dpranke at chromium.org
Fri Jan 22 14:53:30 PST 2010


+1. Note that the pep8 package is available on pypi and easy_install's:

http://pypi.python.org/pypi/pep8/

-- Dirk

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