Skip to content

gh-90814: Correct NEWS wording re. optional C11 features - #96309

Merged
encukou merged 1 commit into
python:mainfrom
encukou:c11-correction
Aug 29, 2022
Merged

encukou merged 1 commit into
python:mainfrom
encukou:c11-correction

Conversation

@encukou

@encukou encukou commented Aug 26, 2022 •

Copy link
Copy Markdown
Member

The current wording of this entry suggests that CPython
won't work if optional compiler features are enabled.
That's not the case. The real change is that we require C11
rather than C89.

Note that PEP-7 says "Python 3.11 and newer versions use C11
without optional features." That is correct: CPython devs
must avoid the features, so that they're not required to build Python.

The current wording of this entry suggests that CPython
won't work if optional compiler features are enabled.
That's not the case. The change is that we require C11 rather
than C89.

Note that PEP 7 does say "Python 3.11 and newer versions use C11
without optional features." It is correct there: that's
not a guide for users who compile Python, but for CPython devs
who must avoid the features.
@encukou encukou added docs Documentation in the Doc dir skip news needs backport to 3.11 only security fixes labels Aug 26, 2022
@encukou
encukou requested a review from vstinner August 26, 2022 13:10

@mdboom mdboom left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed -- this is much clearer.

@encukou
encukou merged commit b2714f0 into python:main Aug 29, 2022
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

@encukou
encukou deleted the c11-correction branch August 29, 2022 11:10
@miss-islington

Copy link
Copy Markdown
Contributor

Sorry @encukou, I had trouble checking out the 3.11 backport branch.
Please backport using cherry_picker on command line.
cherry_picker b2714f05c5cc8765178f296f0f8043410e3a5584 3.11

@vstinner

Copy link
Copy Markdown
Member

Thanks for the better wording :-) PEP 7 says "Python 3.11 and newer versions use C11 without optional features": https://peps.python.org/pep-0007/#c-dialect

@encukou

encukou commented Aug 29, 2022

Copy link
Copy Markdown
Member Author

Please read the first comment here.

@vstinner

Copy link
Copy Markdown
Member

Ah right, the commit message mentions PEP 7 :-)

@vstinner

Copy link
Copy Markdown
Member

I mentioned PEP 7 since I didn't know if PEP 7 wording is correct. It seems so :-)

encukou added a commit to encukou/cpython that referenced this pull request Aug 29, 2022
…nGH-96309)

The previous wording of this entry suggests that CPython
won't work if optional compiler features are enabled.
That's not the case. The change is that we require C11 rather
than C89.

Note that PEP 7 does say "Python 3.11 and newer versions use C11
without optional features." It is correct there: that's
not a guide for users who compile Python, but for CPython devs
who must avoid the features.
@bedevere-bot

Copy link
Copy Markdown

GH-96384 is a backport of this pull request to the 3.11 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label Aug 29, 2022
encukou added a commit that referenced this pull request Aug 29, 2022
…H-96384)

The previous wording of this entry suggests that CPython
won't work if optional compiler features are enabled.
That's not the case. The change is that we require C11 rather
than C89.

Note that PEP 7 does say "Python 3.11 and newer versions use C11
without optional features." It is correct there: that's
not a guide for users who compile Python, but for CPython devs
who must avoid the features.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants