GeezerVison is showing github.com — gh-108765: fix comment about macro definitions in `_stat.c` post GH-108854 by moreal · Pull Request #136027 · python/cpython
Conversation
moreal
commented
Jun 27, 2025
•
edited by bedevere-app
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
This pull request only fixes a typo in the _stat.c file.
Since #108854, the definitions of S_ISDIR(), S_ISREG() and S_ISCHR(), as well as the part that includes sys/stat.h, have moved from Include/pyport.h to Include/fileutils.h. However the comment in Modules/_stat.c still refers to Include/pyport.h so this pull request fixes it.
As note, I didn't create and add an issue number because I think it is a trivial change. In the same context, I didn't think it was necessary to add NEWS as well.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
All commit authors signed the Contributor License Agreement.

|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as resolved.
moreal
changed the title
Fix staled comments in _stat.c
Update a comment in _stat.c to latest
Jun 27, 2025
This comment was marked as resolved.
picnixz
changed the title
Update a comment in _stat.c to latest
gh-108765: fix comment about macro definitions in _stat.c
Jun 27, 2025
picnixz
changed the title
gh-108765: fix comment about macro definitions in _stat.c
gh-108765: fix comment about macro definitions in _stat.c post GH-108854
Jun 27, 2025
|
@StanFromIreland In general, if the PR amends a previous PR, we can reuse the issue number of that PR (if there is one).
|
StanFromIreland reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
I was considering that, I hesitated for a few minutes before applying the label...
My reasoning was, the issue was quite broad and would not add much, but I guess it is good to do so anyway. I will do so in the future!
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
picnixz
commented
Jun 27, 2025
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
For such PRs I usually add "post GH-*" in the title so that one can click on it as well.
|
StanFromIreland reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Thanks @moreal for the PR, and @picnixz for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
picnixz
picnixz approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
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.
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.
|