Skip to content

PC/pyconfig.h: improve implicit linking code readibility - #155995

Merged
zooba merged 2 commits into
python:mainfrom
Andrej730:pc-pyconfig-clarity
Aug 18, 2026
Merged

PC/pyconfig.h: improve implicit linking code readibility#155995
zooba merged 2 commits into
python:mainfrom
Andrej730:pc-pyconfig-clarity

Conversation

@Andrej730

Copy link
Copy Markdown
Contributor

@zooba

Applying pyconfig.h readability improvements, no functional changes. Moved Py_NO_LINK_LIB check and the explaining comment to the block's header, so it will be possible to understand what this block is about without reading through details and several other defs.

Similar changes are suggested by Steve in this PR review - #19740 (review)

I also tried to remove excessive indentation as suggested in the comment (converting it from 8 spaces to 4, see 353d122), but it creates too much diff, doesn't seem worth it. So skipping it in the PR.

@Andrej730
Andrej730 requested a review from a team as a code owner August 18, 2026 09:34
@StanFromIreland StanFromIreland added OS-windows skip issue skip news type-refactor Code refactoring (with no changes in behavior) labels Aug 18, 2026
Comment thread PC/pyconfig.h Outdated
@zooba
zooba merged commit c612fd4 into python:main Aug 18, 2026
51 checks passed
@Andrej730
Andrej730 deleted the pc-pyconfig-clarity branch August 18, 2026 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OS-windows skip issue skip news type-refactor Code refactoring (with no changes in behavior)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants