Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
gh-106318: Add an example forstr.capitalize()
#134272
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Conversation
This is the smallest possible step toward adding examples for the string methods.The content was contributed by@adorilson inpython#105670Becausepython#119445 is big and difficult to review,this PR will be updated as the individual examples get merged.
str.capitalize
for #106318str.capitalize
Uh oh!
There was an error while loading.Please reload this page.
The suggestion was to use a example where there was a bigger contrast between the uppercase in the input stream and the mixed case in the result.
>>> 'LJjubljana starts With a non-english digraph'.capitalize() | ||
'Ljjubljana starts with a non-english digraph' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
>>>'LJjubljana starts With a non-english digraph'.capitalize() | |
'Ljjubljana starts with a non-english digraph' | |
>>>'LJjubljana starts With a non-English digraph'.capitalize() | |
'Ljjubljana starts with a non-English digraph' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
It doesn't look like the word Ljubljana is written with a digraph though?
https://sl.wikipedia.org/wiki/Ljubljana
Is there a word we can use that does?
(Plus we effectively have an L and two Js in "LJjubljana".)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
My initial suggestion was Njemačka[0], the word used in the bug report to fix capitalize[1].
str.capitalize
str.capitalize()
Uh oh!
There was an error while loading.Please reload this page.
This is the smallest possible step toward#106318 , adding examples for the string methods. The content was contributed by@adorilson in#105670 Because#119445 is big and difficult to review, this PR will be updated as the individual examples get merged.
📚 Documentation preview 📚:https://cpython-previews--134272.org.readthedocs.build/