Skip to content

PEP 8: Consider removing "two spaces after period" #3024

Closed
@erlend-aasland

Description

@erlend-aasland

Recently, we experienced an issue of wasted contributor time, wasted core dev time, and not to mention wasted CI resources because of core dev encouragement to revert an added sentence in the docs that did not use two spaces after a period. See python/cpython#102143 and python/cpython#102026 (comment).

The devguide says that one may use one or two spaces; it does not enforce either style.

In order to reduce churn, contributor confusion, and core dev confusion, I suggest to either remove the following sentence from PEP-8:

peps/pep-0008.txt

Lines 708 to 709 in 706b7aa

You should use two spaces after a sentence-ending period in multi-
sentence comments, except after the final sentence.

... or to make it similar to what the devguide advocates:

A sentence-ending period may be followed by one or two spaces

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions