Skip to content

gh-141341: Rename COMPILER macro to _Py_COMPILER on Windows#141342

Merged
vstinner merged 1 commit into
python:mainfrom
vstinner:rename_compiler
Nov 10, 2025
Merged

gh-141341: Rename COMPILER macro to _Py_COMPILER on Windows#141342
vstinner merged 1 commit into
python:mainfrom
vstinner:rename_compiler

Conversation

@vstinner
Copy link
Copy Markdown
Member

@vstinner vstinner commented Nov 10, 2025

@vstinner
Copy link
Copy Markdown
Member Author

cc @picnixz

Copy link
Copy Markdown
Member

@zooba zooba left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -0,0 +1,2 @@
On Windows, rename the ``COMPILER`` macro to ``_Py_COMPILER`` to avoid name
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should we add something in "Porting to Python 3.15" as we were worried about possible consumers or do you think it's sufficient to only have it in the long changelog?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

COMPILER macro is not part of the official C API, so I don't think that it should be documented in the "What's New" document.

@vstinner vstinner merged commit 68266c1 into python:main Nov 10, 2025
54 checks passed
@vstinner vstinner deleted the rename_compiler branch November 10, 2025 14:50
@vstinner
Copy link
Copy Markdown
Member Author

Merged, thanks for your reviews!

StanFromIreland pushed a commit to StanFromIreland/cpython that referenced this pull request Dec 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants