Repository navigation
gh-106318: Improve str.lower() docs - #144848
Conversation
| character(s) is not "Lu" (Letter, uppercase), but e.g. "Lt" (Letter, | ||
| titlecase). | ||
|
|
||
| For example, see the word "Python" written in Punjabi, the most spoken |
There was a problem hiding this comment.
I don’t think the fact is particularly interesting nor helpful, I think it just unnecessarily extends the section.
There was a problem hiding this comment.
Do you mean the whole adding or only the example?
The note paragraph was based on what already exists in the str.upper() docs. If this exists there, I think it makes sense exist here too.
The example I've suggested adds to str.upper() docs on #144638. I would prefer a more Occidental example, but I couldn't find one. I think examples are important.
There was a problem hiding this comment.
I was referring to specifically the "most spoken language in..." fact.
There was a problem hiding this comment.
I was referring to specifically the "most spoken language in..." fact.
There was a problem hiding this comment.
Oh, nice. I've put it because if I see only "written in Punjabi", I would think "wtf is Punjabi?". Of course, I would search about that, but I thought it could be ended here.
That being said, we can:
- Keep it (in case you change your mind)
- Reduce to "written in Punjabi, a language from Paskitan"
- Reduce more to "written in Punjabi"
- 3 + adding a link to the Punjabi Wikipedia entry.
What do you prefer?
There was a problem hiding this comment.
I'd prefer 3. It's clear that it's a language, and you can look it up in a dictionary to learn more.
|
This PR is stale because it has been open for 30 days with no activity. |
📖 150 files changed · 1 added · 149 modified
Preview · build overview · cpython-previews · built Dec. 2, 2026, 3:33 p.m. UTC |
|
Thanks @adorilson for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
|
Thanks @adorilson for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.15. |
|
Sorry, @adorilson and @encukou, I could not cleanly backport this to Please backport manually with cherry_picker, see the devguide for more information. |
|
GH-163022 is a backport of this pull request to the 3.15 branch. |
|
GH-163078 is a backport of this pull request to the 3.14 branch. |
WIP #106318
This PR adds some details to
str.lower()to make it similar tostr.upper()proposed by #144638.📚 Documentation preview 📚: https://cpython-previews--144848.org.readthedocs.build/