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
canonicalize "upper-case" -> "uppercase"; "lower-case" -> "lowercase" #88211
Comments
Yesterday, I was bitten by ConfigParser' default behavior to lowercase keys on reading. When I looked in the documentation and the source code, I found that lowercase was sometimes written as "lower-case", e.g. here The webster dictionary only accepts "lowercase" as a valid English word: Before I wanted to create a pull request for this one, I also grepped the complete source code with the following result: lower-case 24 I'd like to create a pull request which canonicalizes the writing to a consistent "lowercase" resp. "uppercase". Is there any core dev out there willing to review / merge this kind of PR? |
I think we'd want to look at the 33 uses with hyphens to make sure removing the hyphen is correct (as opposed to just blindly make a change). But I'm generally supportive. |
I don’t think that there is a problem to be fixed. |
I did some more research. It looks like US English tends to use See also https://en.wiktionary.org/wiki/lowercase So, to wrap up:
If that is true - I am no native English speaker, and Éric does not like to convert them all to single words, it gets a bit tougher. Some - to me - obvious wrong usages would be: "All IMAP4rev1 commands are supported by methods of the same name (in lower-case)." "All POP3 commands are represented by methods of the same name, in lower-case; most return the response text sent by the server." "Wrapper around a file that converts output to upper-case." "Return a new UUID, in the format that MSI typically requires (i.e. in curly braces, and with all hexdigits in upper-case)." "Hostnames are compared lower case." Éric, are you ok with my suggested changes or do you want me to close the issue? |
That's exactly the kind of manual check I had in mind. After all "anal retentive doesn't have a hyphen unless it's used as a compound adjective". I think we should go with "lowercase" when a noun, and "lower-case" as an adjective. |
Thank you for the feedback. I created a PR. |
https://dictionary.cambridge.org/us/dictionary/english/lower-case lists lower-case as a valid variant for nouns as well as adjectives. |
The stdlib seems to have settled on lowercase for the noun version, though. My two cents: no sense not being consist just because lower-case might also work. |
On Sat, May 8, 2021 at 10:38 PM Eric V. Smith <report@bugs.python.org>
Sounds good to me, I'm not opposed to consistency! |
In imaplib, the first sentence in that section there is this:
Should that be changed over too, or is this issue good to close? |
Yes, makes sense, you can open a PR if can. |
…8211 Issue python#88211 recommends canonicalizing instances of upper-case to uppercase and lower-case to lowercase. This commit addresses outstanding instances present in Doc/library/impamlib.rst.
PR Submitted. Please let me know if there are any issues. |
…ions in imaplib docs (python#99625)
jugmac00 mannequin commentedMay 5, 2021
•
edited by bedevere-bot
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
Linked PRs
The text was updated successfully, but these errors were encountered: