Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Aug 29, 2022

Conversation

encukou
Copy link
Member

@encukou encukou commented Aug 26, 2022

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
Copy link
Contributor

@mdboom mdboom left a comment

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
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
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
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
Copy link
Member Author

encukou commented Aug 29, 2022

Please read the first comment here.

@vstinner
Copy link
Member

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

@vstinner
Copy link
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

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