Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
blaisep wants to merge3 commits intopython:main
base:main
Choose a base branch
Loading
fromblaisep:106318

Conversation

blaisep
Copy link
Contributor

@blaisepblaisep commentedMay 19, 2025
edited by bedevere-appbot
Loading

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/

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.
@bedevere-appbedevere-appbot added docsDocumentation in the Doc dir skip news awaiting review labelsMay 19, 2025
@blaisepblaisep changed the titleAdd an example forstr.capitalize for #106318gh-106318: Add an example forstr.capitalizeMay 19, 2025
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.
Comment on lines +1766 to +1767
>>> 'LJjubljana starts With a non-english digraph'.capitalize()
'Ljjubljana starts with a non-english digraph'
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
>>>'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'

Copy link
Member

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".)

Copy link
Contributor

Choose a reason for hiding this comment

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

@picnixzpicnixz changed the titlegh-106318: Add an example forstr.capitalizegh-106318: Add an example forstr.capitalize()May 23, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@adorilsonadorilsonadorilson left review comments

@hugovkhugovkhugovk left review comments

@StanFromIrelandStanFromIrelandStanFromIreland left review comments

Assignees
No one assigned
Labels
awaiting reviewdocsDocumentation in the Doc dirskip news
Projects
Status: Todo
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@blaisep@adorilson@hugovk@StanFromIreland

[8]ページ先頭

©2009-2025 Movatter.jp