Skip to content

gh-106318: Add examples to str method entries - #105670

Closed
adorilson wants to merge 45 commits into
python:mainfrom
adorilson:str_methods_2
Closed

gh-106318: Add examples to str method entries#105670
adorilson wants to merge 45 commits into
python:mainfrom
adorilson:str_methods_2

Conversation

@adorilson

@adorilsonadorilson commented Jun 11, 2023

Copy link
Copy Markdown
Contributor

This PR improvements the str method documentation, adding snippet code in the follows methods and other minor improvements:

  • capitalize
  • casefold
  • center
  • count
  • encode
  • endswith
  • expandtabs
  • find
  • index
  • isalnum
  • isalpha
  • isascii
  • isdecimal
  • isdigit
  • isidentifier
  • islower
  • isnumeric
  • isprintable
  • isspace
  • istitle
  • join
  • ljust
  • lower
  • lstrip
  • maketrans
  • partition
  • replace
  • rindex
  • rjust
  • rpartition
  • rsplit
  • rstrip
  • startswith
  • swapcase
  • translate
  • upper

📚 Documentation preview 📚: https://cpython-previews--105670.org.readthedocs.build/

@adorilson

Copy link
Copy Markdown
ContributorAuthor

I have made the requested changes; please review again

@bedevere-bot

Copy link
Copy Markdown

Thanks for making the requested changes!

@terryjreedy: please review the changes made to this pull request.

@AA-Turner
AA-Turner self-requested a review September 21, 2023 04:07
@ezio-melotti
ezio-melotti self-requested a review February 13, 2024 00:42
blaisep added a commit to blaisep/cpython that referenced this pull request May 22, 2025
WIP to fixpython#106318 using the contributions from python#105670
blaisep added a commit to blaisep/cpython that referenced this pull request May 22, 2025
blaisep added a commit to blaisep/cpython that referenced this pull request May 22, 2025
@StanFromIreland

Copy link
Copy Markdown
Member

I will close this PR as it has been split into many smaller ones and quite a few have already been merged.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting changesdocsDocumentation in the Doc dirskip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

6 participants

@adorilson@bedevere-bot@StanFromIreland@hauntsaninja@terryjreedy@willingc