Skip to content

Confliction about comment style in PEP7 #176

Closed

Description

@zhangyangyu

Currently in PEP7, in C dialect section, it first states "C++ style line comments" is among the selected C99 features but then states "Never use C++ style // one-line comments". I think it's a confliction.

Activity

  1. brettcannon commented on Jan 10, 2017

    @brettcannon
    Member

    This probably need to be discussed on python-dev.

  2. zhangyangyu commented on Jan 11, 2017

    @zhangyangyu
    MemberAuthor

    I think C99 features used in 3.6 is already discussed in June. More like an edit oversight to me. Assign to Benjamin who is the editor.

  3. methane commented on Jan 11, 2017

    @methane
    Member

    C99 features which can be used in 3.6+ is documented here:
    https://github.com/python/peps/blob/master/pep-0007.txt#L39-L48

  4. brettcannon commented on Jan 11, 2017

    @brettcannon
    Member

    Already got a reply from @benjaminp on python-dev. Basically the PEP just needs an update.

  5. ncoghlan commented on Jan 12, 2017

    @ncoghlan
    Contributor

    To handle compiler compatibility requirements on maintenance branches, perhaps the PEP needs a common shorthand like "(Allowed in: 3.6+)"?

    Then it can just have a short blurb at the top explaining that the use of some features is constrained by compiler compatibility requirements, and the "(Allowed in: X.Y+)" notation will be used whenever that's the case.

  6. brettcannon commented on Aug 18, 2017

    @brettcannon
    Member

    Fixed in 71098c1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions