-
-
Notifications
You must be signed in to change notification settings - Fork 26
Style guide: permit "CPU"? #109
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
Comments
Agreed. I see "CPU" occasionally used metaphorically in non-technical mainstream publications (newspapers, magazines) so it has entered the vernacular, and we needn't be so cagey about explaining the abbreviation. |
I feel this is the kind of abbreviation where the abbreviation is more commonly understood than the full form. |
I also agree that the docs for a programming language can assume a certain amount of background, including understanding the term "CPU." As we look at other doc style guides, we have to remember that our audience may be different than theirs. |
I think that there is consensus here that "CPU" seems reasonable in today's language. |
@nedbat @gvanrossum I added this to the list that @jablonskidev started for the Editorial Board. |
I agree that CPU doesn't need to be spelled out. However, keep in mind that there is an
For common abbreviations (such as CPU), I would just use |
I don't recall what specifically prompted me to add that, and agree the advice is more than a little dated. Let's toss the prohibition. |
You gotta be kidding. This is just too much markup. There's no need. Next you'll want us to mark up nouns with |
And https://adrianroselli.com/2024/01/using-abbr-element-with-title-attribute.html#Verdict Please see PR python/devguide#1289 to remove the no-"CPU" advice. |
@hugovk Thanks for the update re: accessibility. Makes sense to limit new use of |
The devguide style guide advises against using "CPU":
But it's advice rarely followed. A quick count in the CPython docs (searching for lines with regex
"\bCPUs?\b"
and"\bprocessors?\b"
):Even the devguide only managed 1 "processor", and it was in the recommendation above to use this word. Compared to 4 "CPU" (1 in the prohibition above and 3 elsewhere).
Other style guides
Well, let's see what some other style guides say.
Google:
Red Hat:
Apple:
Microsoft:
CPU not specifically mentioned or prohibited.
Bishop Fox
Archaeology
This advice was first added to the devguide by Sandro Tosi in January 2012:
python/devguide@3160c41
It was moved from "Documenting Python":
https://web.archive.org/web/20080214225803/http://docs.python.org/dev/documenting
The style guide mentioned there isn't archived, but it was originally part of the Python source. This advice was first added to the main repo by Fred Drake in July 2001:
python/cpython@9120df3
The commit message:
I had a poke around the old Python-Dev mailing list but didn't find any mention.
So no specific reasoning for this addition.
Suggestion
I think our recommendation is outdated, and we're clearly not following it.
I think it's okay to use "CPU" without spelling out.
Shall we remove this rule, or update it somehow?
The text was updated successfully, but these errors were encountered: