Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos in variable names, function names, and comments #101868

Merged
merged 3 commits into from Dec 1, 2023

Conversation

howjmay
Copy link
Contributor

@howjmay howjmay commented Feb 13, 2023

No description provided.

@bedevere-bot
Copy link

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

@cpython-cla-bot
Copy link

cpython-cla-bot bot commented Feb 13, 2023

All commit authors signed the Contributor License Agreement.
CLA signed

Copy link
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.

A few "real" changes exist here, so pinging experts directly to get them explicitly verified.

@@ -1490,7 +1490,7 @@ def packageFromRecipe(targetDir, recipe):
IFPkgFlagRelocatable=False,
IFPkgFlagRestartAction="NoRestart",
IFPkgFlagRootVolumeOnly=True,
IFPkgFlagUpdateInstalledLangauges=False,
IFPkgFlagUpdateInstalledLanguages=False,
Copy link
Member

Choose a reason for hiding this comment

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

@python/macos-team Looks like a potentially impactful change here. Can you review?

Copy link
Member

Choose a reason for hiding this comment

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

This looks like a bug fix to me. If someone could demonstrate undesired behavior caused by this typo, it would warrant a bug report and a separate PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

FTR, Ned responded here: #101868 (review)

Tools/c-analyzer/c_analyzer/__init__.py Show resolved Hide resolved
Tools/clinic/clinic.py Outdated Show resolved Hide resolved
@@ -522,7 +522,7 @@ def gcc_get_limited_api_macros(headers):

api_hexversion = sys.version_info.major << 24 | sys.version_info.minor << 16

preprocesor_output_with_macros = subprocess.check_output(
Copy link
Member

Choose a reason for hiding this comment

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

Not sure who the current maintainer here would be (@encukou?) but someone should check that all references have been handled.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, me. I won't get to reviewing a typo in an internal variable name any time soon though. Generally we avoid such cosmetic changes, anyway.

@brettcannon brettcannon removed their request for review March 2, 2023 00:33
Copy link
Member

@ned-deily ned-deily left a comment

Choose a reason for hiding this comment

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

That particular typo in Mac/BuildScript/build-installer.py is in a data structure that is no longer used in installer builds and will eventually be removed. For simplicity, I would just ignore it.

@arhadthedev
Copy link
Member

Can this PR be merged?

@hugovk
Copy link
Member

hugovk commented May 6, 2023

Not yet, there's still some open questions.

@erlend-aasland
Copy link
Contributor

Can this PR be merged?

Oleg, please check all conversations and posts on the issue before adding adding comments like this. As the devguide says, please be patient. I know you only want to help, but comments like this can end up being more noise than help (and this PR is already balancing on the edge wrt. churn vs. real issues).

It's easy to see, for example, that Ned's remark has not been addressed yet (read the post, check the diff). Petr's comment hints of a -1 for that particular change, so IMO the PR author should avoid that too.

(Hope this did not come out too harsh.)

@erlend-aasland erlend-aasland changed the title fix the typos Fix typos in variable names, function names, and comments May 6, 2023
@erlend-aasland
Copy link
Contributor

Also, only straight-forward documentation fixes generally get the skip issue label. Renaming a variable or a function can potentially be a breaking change, so personally I would not apply the skip issue label to such a PR. FWIW.

@bedevere-bot
Copy link

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

@serhiy-storchaka
Copy link
Member

All these changes LGTM. Changing comments, names of local variables and internal functions in internal modules is pretty safe.

The only change that can potentially have effect is the change in Mac/BuildScript/build-installer.py. But it is the correct change, IFPkgFlagUpdateInstalledLanguages is the correct name.

@AlexWaygood AlexWaygood removed their request for review November 27, 2023 11:41
@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) December 1, 2023 09:37
@serhiy-storchaka serhiy-storchaka merged commit 707c37e into python:main Dec 1, 2023
28 checks passed
@howjmay howjmay deleted the typo branch December 15, 2023 20:25
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.

None yet