[webkit-dev] Formatting style for inline comments in Python code

Ryosuke Niwa rniwa at webkit.org
Wed Oct 25 12:25:00 PDT 2017


We should probably use one space to be consistent across the project.

- R. Niwa

On Wed, Oct 25, 2017 at 12:13 PM, Aakash Jain <aakash_jain at apple.com> wrote:

> Hi All,
>
> There is one case in which Webkit style guidelines and Python style
> guidelines do not match. This is about spacing before inline comments.
>
> WebKit style guidelines (https://webkit.org/code-
> style-guidelines/#comments-eol) says: "Use only *one* *space* before end
> of line comments and in between sentences in comments."
>
> Python PEP8 style guidelines (https://www.python.org/dev/
> peps/pep-0008/#inline-comments) says: "Inline comments should be
> separated by at least *two spaces* from the statement."
>
> Should we use "one space" or "two spaces" before the inline comments in
> python code inside Webkit?
>
> Thanks
> Aakash
>
> Reference: https://bugs.webkit.org/show_bug.cgi?id=171506
>
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20171025/19204ec3/attachment.html>


More information about the webkit-dev mailing list