Skip to content

Typos found by codespell #2073

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

Merged
merged 2 commits into from
Sep 17, 2021
Merged

Typos found by codespell #2073

merged 2 commits into from
Sep 17, 2021

Conversation

DimitriPapadopoulos
Copy link
Contributor

These typos detected by codespell are scattered over many PEPs. Should I really open a different PR for each PEP?

pep-0659.rst Outdated
@@ -44,7 +44,7 @@ Both academic research and practical implementations have shown that a fast inte

Typical optimizations for virtual machines are expensive, so a long "warm up" time is required
to gain confidence that the cost of optimization is justified.
In order to get speed-ups rapidly, without noticable warmup times,
In order to get speed-ups rapidly, without noticeable warm-up times,
Copy link
Member

Choose a reason for hiding this comment

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

"warmup" seems fine

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True, but codespell prefers warm-up and so do Merriam-Webster and The Oxford Advanced Learner's Dictionary.

Copy link
Member

Choose a reason for hiding this comment

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

I'd prefer to leave the original author's wording unless it's clearly wrong. English spelling has some variation.

Similarly, you changed "reenable" to "re-enable" at some point. That can also stay as "reenable".

Copy link
Contributor Author

@DimitriPapadopoulos DimitriPapadopoulos Sep 17, 2021

Choose a reason for hiding this comment

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

OK, I'll keep it as it was.

As for re-enable, it's probably my wrong. I seem to recall it is a citation of a mail and shouldn't be changed. I'll look into it and fix it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That said, PEP 0659 itself is inconsistent:

"warm up" time
warmup times

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@gvanrossum
Copy link
Member

Honestly I don’t like such “omnibus” PRs. There’s often something that eluded review.

And I don’t mind having the occasional typo, unless it makes the text hard to follow. The time to use a spell checker is when first writing the text.

@DimitriPapadopoulos
Copy link
Contributor Author

DimitriPapadopoulos commented Sep 17, 2021

I understand, besides that's why I asked if such a PR acceptable.

However, after fixing these typos, I could add a codespell GitHub action that could catch typos early on. I cannot add it as long as codespell reports too many errors.

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.

5 participants