Skip to content

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

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

Open
wants to merge 45 commits into
base: main
Choose a base branch
from

Conversation

adorilson
Copy link
Contributor

@adorilson adorilson commented Jun 11, 2023

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 added 30 commits June 11, 2023 19:43
@bedevere-bot
Copy link

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@adorilson
Copy link
Contributor Author

I have made the requested changes; please review again

@bedevere-bot
Copy link

Thanks for making the requested changes!

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

@bedevere-bot bedevere-bot requested a review from terryjreedy July 3, 2023 10:46
@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
@adorilson adorilson requested a review from hauntsaninja March 10, 2024 20:00
blaisep added a commit to blaisep/cpython that referenced this pull request May 22, 2025
WIP to fix python#106318 using the contributions from python#105670
blaisep added a commit to blaisep/cpython that referenced this pull request May 22, 2025
WIP to fix python#106318 using the contributions from python#105670
blaisep added a commit to blaisep/cpython that referenced this pull request May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting changes docs Documentation in the Doc dir skip news
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

5 participants