Skip to content

Fix typo in gc.c#146602

Closed
dzhalaevd wants to merge 1 commit intopython:mainfrom
dzhalaevd:patch-1
Closed

Fix typo in gc.c#146602
dzhalaevd wants to merge 1 commit intopython:mainfrom
dzhalaevd:patch-1

Conversation

@dzhalaevd
Copy link
Copy Markdown

No description provided.

@bedevere-app
Copy link
Copy Markdown

bedevere-app bot commented Mar 29, 2026

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@python-cla-bot
Copy link
Copy Markdown

python-cla-bot bot commented Mar 29, 2026

All commit authors signed the Contributor License Agreement.

CLA signed

@dzhalaevd
Copy link
Copy Markdown
Author

@Eclips4 could you review pls ^_^

@brianschubert
Copy link
Copy Markdown
Contributor

Sorry, we don't accept typo fixes for internal comments as it is code churn. Typos can be fixed for user-facing text (e.g. docs or docstrings). Please see the dev guide for more information about what kinds of contributions are accepted: https://devguide.python.org/

@Eclips4
Copy link
Copy Markdown
Member

Eclips4 commented Mar 29, 2026

@brianschubert Hi! Do we really have something about this in the devguide? I don't remember anything about that and can't find it. Can you please show me the part of the devguide you're referring to? I was always under the impression that this kind of PR is acceptable, but maybe I'm wrong.

@brianschubert
Copy link
Copy Markdown
Contributor

@Eclips4 we've closed similar PRs in the past, see e.g. #143979 (comment), #144241 (comment). I'm not sure this is spelled out in the dev guide, it's more of the de facto policy from some internal discussions on discord. Possibly @picnixz can point to where the quote in the second comment came from.

@dzhalaevd
Copy link
Copy Markdown
Author

@Eclips4 we've closed similar PRs in the past, see e.g. #143979 (comment), #144241 (comment). I'm not sure this is spelled out in the dev guide, it's more of the de facto policy from some internal discussions on discord. Possibly @picnixz can point to where the quote in the second comment came from.

Hi, there are also similar pr which were merged #118024, #97766, #142612 e.g I’m not sure what the difference is.

@dzhalaevd dzhalaevd changed the title fix typo in gc Fix typo in gc.c Mar 29, 2026
@picnixz
Copy link
Copy Markdown
Member

picnixz commented Mar 29, 2026

The difference is between a user facing change (docs, rst, help(), online docs, etc) vs comments that you only see in the source code.

@picnixz
Copy link
Copy Markdown
Member

picnixz commented Mar 29, 2026

can point to where the quote in the second comment came from.

The second quote comes from me and my past interactions with triaging. The general rule is to avoid code churn as much as possible as this creates branches divergences. AS for the quote it's in https://devguide.python.org/getting-started/pull-request-lifecycle/#making-good-prs:

Pull requests with only code formatting changes are usually rejected. On the other hand, fixes for typos and grammar errors in documents and docstrings are welcome.

@picnixz
Copy link
Copy Markdown
Member

picnixz commented Mar 29, 2026

As for #118024 and #142612, we shouldn't have merged them but if a core dev decides to do it, it's another story (it's left at the discretion of core devs whether to merge changes or not and usually at the codeowner's discretion).

For #97766, it's because it's the docstring that was modified hence user-facing.

@dzhalaevd dzhalaevd deleted the patch-1 branch March 29, 2026 18:27
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