GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gh-95913: Consolidate build requirements changes in 3.11 WhatsNew by CAM-Gerlach · Pull Request #98781 · python/cpython

Conversation

@CAM-Gerlach

@CAM-Gerlach CAM-Gerlach commented Oct 27, 2022 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Part of #95913 , followup to PR #98588

On #98588 , @encukou suggested several significant fixes/improvements to the Build section of the What's New in Python 3,11 document that would consolidate changes that were redundant as part of the move to C11, as well as clarify some other points. Unfortunately, the PR was merged before they could be applied there, so per his direction, I've opened this to apply them now (with a few small tweaks).

  • Issue: Edit What's New for Python 3.11 #95913

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@CAM-Gerlach @encukou
Apply suggestion to combine build requirements changes in 3.11 WhatsNew
f990a6f
Co-authored-by: Petr Viktorin <[email protected]>
@bedevere-bot bedevere-bot added awaiting review docs Documentation in the Doc dir skip news labels Oct 27, 2022
@CAM-Gerlach
CAM-Gerlach requested review from encukou and pablogsal October 27, 2022 19:51
@CAM-Gerlach CAM-Gerlach added 3.11 only security fixes needs backport to 3.11 only security fixes labels Oct 27, 2022
@CAM-Gerlach CAM-Gerlach changed the title gh-95913: Combine related build requirements changes in 3.11 WhatsNew gh-95913: Consolidate build requirements changes in 3.11 WhatsNew Oct 27, 2022
This was referenced Oct 27, 2022
gh-95913: Edit, link and sort 3.11 WhatsNew Build section #98588
Merged
Edit What's New for Python 3.11 #95913
Closed
JelleZijlstra
JelleZijlstra approved these changes Nov 3, 2022
View reviewed changes
@bedevere-bot bedevere-bot added awaiting merge and removed awaiting review labels Nov 3, 2022
@vstinner

vstinner commented Nov 3, 2022

Copy link
Copy Markdown
Member

@encukou wrote:

NaNs are part of IEEE 754, and the math functions are part of C11, so mentioning the earlier changes are redundant now.

Well, I chose to be extra explicit, since compilers have the bad habit of not implementing fully or exactly C standards. For example, see Modernizing Fedora's C code about GCC and clang which don't respect C99/C11 "for backward compatibility".

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@kumaraditya303

kumaraditya303 commented Jan 1, 2023

Copy link
Copy Markdown
Contributor

Anything blocking this to be merged?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@CAM-Gerlach

CAM-Gerlach commented Jan 1, 2023

Copy link
Copy Markdown
Member Author

Hey @vstinner @encukou do you think this should be changed or some of this reverted, based on the feedback above? Or should we go ahead with it?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@CAM-Gerlach

CAM-Gerlach commented Mar 6, 2023

Copy link
Copy Markdown
Member Author

Hey @vstinner @encukou , further thoughts on this?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@encukou

encukou commented Mar 6, 2023

Copy link
Copy Markdown
Member

Sorry, this PR fell through the cracks for me. I'll review this week.

CAM-Gerlach reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@CAM-Gerlach

CAM-Gerlach commented Mar 6, 2023

Copy link
Copy Markdown
Member Author

Thanks @encukou . Also, it sounds like Victor is on hiatus for now and passed on reviewing this.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@encukou

encukou commented Mar 7, 2023

Copy link
Copy Markdown
Member

Well, I chose to be extra explicit, since compilers have the bad habit of not implementing fully or exactly C standards. For example, see Modernizing Fedora's C code about GCC and clang which don't respect C99/C11 "for backward compatibility".

Yeah, but that (the example at least) is about keeping old behavior in cases where C99 says something is illegal or undefined. (AFAIK, the standard mandates an error, so the implementation doesn't comply with the standard, but it's fine in the real world.)
Leaving out <math.h> (or a function from it) would be pretty hard to sell as a deliberate backwards-compatibility quirk. So in this particular case, only requiring a C11 libc should be fine.

CAM-Gerlach reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@encukou
encukou merged commit 4a3ea1f into python:main Mar 7, 2023
@miss-islington

miss-islington commented Mar 7, 2023

Copy link
Copy Markdown
Contributor

Thanks @CAM-Gerlach for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-bot bedevere-bot removed the awaiting merge label Mar 7, 2023
@bedevere-bot

bedevere-bot commented Mar 7, 2023

Copy link
Copy Markdown

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label Mar 7, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 7, 2023
@CAM-Gerlach @encukou @miss-islington
pythongh-95913: Consolidate build requirements changes in 3.11 WhatsN…
de557bc
…ew (pythonGH-98781)

Apply suggestion to combine build requirements changes in 3.11 WhatsNew

(cherry picked from commit 4a3ea1f)

Co-authored-by: C.A.M. Gerlach <[email protected]>
Co-authored-by: Petr Viktorin <[email protected]>
carljm added a commit to carljm/cpython that referenced this pull request Mar 7, 2023
@carljm
Merge branch 'main' into nodeaddict
e391218
* main:
  pythongh-102493: fix normalization in PyErr_SetObject (python#102502)
  pythongh-87092: compiler's CFG construction moved to after codegen stage (python#102320)
  pythongh-95913: Consolidate build requirements changes in 3.11 WhatsNew (pythonGH-98781)
  Remove redundant `_ensure_future` in favor of `ensure_future` in `asyncio` (python#102398)
  pythongh-95913: Edit Faster CPython section in 3.11 WhatsNew (pythonGH-98429)
  pythongh-90110: Fix the c-analyzer Tool (python#102483)
  pythongh-101759: Update macOS installer SQLite 3.40.1 checksum (pythongh-102485)
  Remove unused import of `warnings` from `unittest.loader` (python#102479)
  Add gettext support to tools/extensions/c_annotations.py (python#101989)
carljm added a commit to carljm/cpython that referenced this pull request Mar 8, 2023
@carljm
Merge branch 'main' into inlinecomp2
1c019a7
* main:
  pythongh-102493: fix normalization in PyErr_SetObject (python#102502)
  pythongh-87092: compiler's CFG construction moved to after codegen stage (python#102320)
  pythongh-95913: Consolidate build requirements changes in 3.11 WhatsNew (pythonGH-98781)
  Remove redundant `_ensure_future` in favor of `ensure_future` in `asyncio` (python#102398)
  pythongh-95913: Edit Faster CPython section in 3.11 WhatsNew (pythonGH-98429)
  pythongh-90110: Fix the c-analyzer Tool (python#102483)
  pythongh-101759: Update macOS installer SQLite 3.40.1 checksum (pythongh-102485)
  Remove unused import of `warnings` from `unittest.loader` (python#102479)
  Add gettext support to tools/extensions/c_annotations.py (python#101989)
miss-islington added a commit that referenced this pull request Mar 22, 2023
@miss-islington @CAM-Gerlach @encukou
gh-95913: Consolidate build requirements changes in 3.11 WhatsNew (GH…
4c1b4ec
…-98781)

Apply suggestion to combine build requirements changes in 3.11 WhatsNew

(cherry picked from commit 4a3ea1f)

Co-authored-by: C.A.M. Gerlach <[email protected]>
Co-authored-by: Petr Viktorin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@JelleZijlstra JelleZijlstra JelleZijlstra approved these changes
@pablogsal pablogsal Awaiting requested review from pablogsal
@encukou encukou Awaiting requested review from encukou

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

3.11 only security fixes docs Documentation in the Doc dir skip news

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

7 participants

@CAM-Gerlach @vstinner @kumaraditya303 @encukou @miss-islington @bedevere-bot @JelleZijlstra
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.