Skip to content

Correcting hyphenation in various locations in documentation #26177

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

Closed
wants to merge 1 commit into from
Closed

Correcting hyphenation in various locations in documentation #26177

wants to merge 1 commit into from

Conversation

JosephTLyons
Copy link

Since these are trivial documentation changes, I did not create an issue.

There are two things this PR fixes

When two or more words form an adjective that describe some noun, and the descriptor words precede the noun, the descriptors should be hyphenated. In this case specifically, I corrected some usages of IO bound and CPU bound to be IO-bound and CPU-bound, respectively. There are already places in Python documentation that already do this, such as "However, threading is still an appropriate model if you want to run multiple I/O-bound tasks simultaneously".

It should be noted that there are places where these words shouldn't be hyphenated, such as when the descriptor words come after the noun; I've corrected a case like this as well.

@the-knights-who-say-ni
Copy link

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA).

CLA Missing

Our records indicate the following people have not signed the CLA:

@JosephTLyons

For legal reasons we need all the people listed to sign the CLA before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

If you have recently signed the CLA, please wait at least one business day
before our records are updated.

You can check yourself to see if the CLA has been received.

Thanks again for the contribution, we look forward to reviewing it!

Comment on lines -176 to +177
This default value preserves at least 5 workers for I/O bound tasks.
It utilizes at most 32 CPU cores for CPU bound tasks which release the GIL.
This default value preserves at least 5 workers for I/O-bound tasks.
It utilizes at most 32 CPU cores for CPU-bound tasks which release the GIL.
Copy link
Author

Choose a reason for hiding this comment

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

In both of these cases, I/O bound and CPU bound precede the wordtasks, so they should be hyphenated.

"Use a hyphen in a compound modifier when the modifier comes before the word it’s modifying."

*maxsize* most recent calls. It can save time when an expensive or I/O bound
*maxsize* most recent calls. It can save time when an expensive or I/O-bound
Copy link
Author

Choose a reason for hiding this comment

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

In this case, I/O bound precedes the word function, so it should be hyphenated.

"Use a hyphen in a compound modifier when the modifier comes before the word it’s modifying."

rarely CPU-bound, however.
rarely CPU bound, however.
Copy link
Author

Choose a reason for hiding this comment

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

Comment on lines -130 to +131
# * CPU bound task which releases GIL
# * I/O bound task (which releases GIL, of course)
# * CPU-bound task which releases GIL
# * I/O-bound task (which releases GIL, of course)
Copy link
Author

Choose a reason for hiding this comment

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

In both of these cases, I/O bound and CPU bound precede the word task, so they should be hyphenated.

"Use a hyphen in a compound modifier when the modifier comes before the word it’s modifying."

@JosephTLyons
Copy link
Author

Re-opened a new PR because of the errors in the branch name and commit message here:

#26173

@rhettinger
Copy link
Contributor

I did a quick scan of articles mentioning the term. It appears that than non-hypenated form is more common. I say we leave it as-is.

@rhettinger rhettinger removed their request for review May 16, 2021 21:01
@JosephTLyons
Copy link
Author

JosephTLyons commented May 17, 2021

I did a quick scan of articles mentioning the term. It appears that than non-hypenated form is more common. I say we leave it as-is.

There are places in the documentation right now that follow these hyphenation rules, so as is, there are discrepancies. I believe that if the overall opinion is to not hyphenate, then the other instances that already exist should be adjusted, for consistency.

It should probably also be noted that some places in the documentation use IO and other places use I/O.

@github-actions
Copy link

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale Stale PR or inactive for long period of time. label Jun 17, 2021
@github-actions github-actions bot removed the stale Stale PR or inactive for long period of time. label Aug 8, 2022
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