Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
python
cpython
Repository navigation
Code
Issues
5k+
(5k+)
Pull requests
2.7k
(2.7k)
Actions
Projects
Security and quality
Insights
More
items
gh-106318: Add string method examples
- #119445
#119445
Closed
blaisep
wants to merge 67 commits into
python:main
python/cpython:main
from
blaisep:pr-105670
blaisep/cpython:pr-105670
Copy head branch name to clipboard
Conversation
Commits
67
(67)
Checks
Files changed
Closed
gh-106318: Add string method examples
#119445
blaisep
wants to merge 67 commits into
python:main
python/cpython:main
from
blaisep:pr-105670
blaisep/cpython:pr-105670
Copy head branch name to clipboard
Commits
Commits on Jun 11, 2023
[Doc] Added snippet code to str.join method
adorilson
committed
5508700
View commit details
Copy full SHA for 5508700
Browse repository at this point
[Doc] Added snippet code to str.ljust method
adorilson
committed
e388d45
View commit details
Copy full SHA for e388d45
Browse repository at this point
[Doc] Added snippet code to str.rjust method
adorilson
committed
d8407ba
View commit details
Copy full SHA for d8407ba
Browse repository at this point
[Doc] Added 'See also' in str.lstrip and str.rstrip methods from one to the another
adorilson
committed
08b88ef
View commit details
Copy full SHA for 08b88ef
Browse repository at this point
[Doc] Added snippet code to str.maketrans method
adorilson
committed
52e3a6b
View commit details
Copy full SHA for 52e3a6b
Browse repository at this point
[Doc] Added snippet code to str.translate method
adorilson
committed
dee059c
View commit details
Copy full SHA for dee059c
Browse repository at this point
[Doc] Added snippet code to str.partition method
adorilson
committed
1671497
View commit details
Copy full SHA for 1671497
Browse repository at this point
[Doc] Added snippet code to str.replace method
adorilson
committed
c832623
View commit details
Copy full SHA for c832623
Browse repository at this point
[Doc] Added snippet code to str.rfind method
adorilson
committed
0be8170
View commit details
Copy full SHA for 0be8170
Browse repository at this point
[Doc] Added snippet code to str.rindex method
adorilson
committed
ff65bd2
View commit details
Copy full SHA for ff65bd2
Browse repository at this point
[Doc] Added snippet code to str.rpartition method
adorilson
committed
322c88c
View commit details
Copy full SHA for 322c88c
Browse repository at this point
[DOC] minor change
adorilson
committed
3a473df
View commit details
Copy full SHA for 3a473df
Browse repository at this point
[Doc] Added snippet code to str.rsplit method
adorilson
committed
b653693
View commit details
Copy full SHA for b653693
Browse repository at this point
[Doc] Added snippet code to str.startswith method
adorilson
committed
1b412cb
View commit details
Copy full SHA for 1b412cb
Browse repository at this point
[Doc] Added snippet code to str.swapcase method
adorilson
committed
fb56441
View commit details
Copy full SHA for fb56441
Browse repository at this point
[Doc] Added snippet code to str.upper method
adorilson
committed
04a5212
View commit details
Copy full SHA for 04a5212
Browse repository at this point
[DOC] Added snipped code in str.capitalize
adorilson
committed
8771775
View commit details
Copy full SHA for 8771775
Browse repository at this point
[DOC] Add snippet code in str.casefold and str.lower methods
adorilson
committed
f2e224c
View commit details
Copy full SHA for f2e224c
Browse repository at this point
[DOC] Added snippet code in str.center method
adorilson
committed
1d39f92
View commit details
Copy full SHA for 1d39f92
Browse repository at this point
[DOC] Added snippet code in str.count method
adorilson
committed
b3a70b6
View commit details
Copy full SHA for b3a70b6
Browse repository at this point
[DOC] fix typo
adorilson
committed
37477f8
View commit details
Copy full SHA for 37477f8
Browse repository at this point
[DOC] Added snippet code in str.encode method
adorilson
committed
f9a7293
View commit details
Copy full SHA for f9a7293
Browse repository at this point
[DOC] Added snippet code to str.endswith method
adorilson
committed
2e54cb0
View commit details
Copy full SHA for 2e54cb0
Browse repository at this point
[DOC] Added snippet code with \n to str.expandtabs method
adorilson
committed
96d9bf6
View commit details
Copy full SHA for 96d9bf6
Browse repository at this point
[DOC] Added snippet code to str.index method
adorilson
committed
d1dc7e0
View commit details
Copy full SHA for d1dc7e0
Browse repository at this point
[DOC] Added snippet code to str.isalnum method
adorilson
committed
8661d8e
View commit details
Copy full SHA for 8661d8e
Browse repository at this point
[DOC] Added snippet code in str.isalpha method
adorilson
committed
9e1f289
View commit details
Copy full SHA for 9e1f289
Browse repository at this point
[DOC] Added snippet code in str.isascii method
adorilson
committed
9e361d8
View commit details
Copy full SHA for 9e361d8
Browse repository at this point
[DOC] Added snippet code to str.isdecimal method
adorilson
committed
09a463a
View commit details
Copy full SHA for 09a463a
Browse repository at this point
[Doc] Added snippet code to str.isdigit method
adorilson
committed
641de5c
View commit details
Copy full SHA for 641de5c
Browse repository at this point
[Doc] Added snippet code to str.islower method
adorilson
committed
eae1564
View commit details
Copy full SHA for eae1564
Browse repository at this point
[Doc] Added snippet code to str.isnumeric method
adorilson
committed
58331b8
View commit details
Copy full SHA for 58331b8
Browse repository at this point
[Doc] Added snippet code to str.isprintable method
adorilson
committed
d7ce39c
View commit details
Copy full SHA for d7ce39c
Browse repository at this point
[Doc] Added snippet code to str.isspace method
adorilson
committed
b86cefd
View commit details
Copy full SHA for b86cefd
Browse repository at this point
[Doc] Adde snippet code to str.istitle method
adorilson
committed
3df630c
View commit details
Copy full SHA for 3df630c
Browse repository at this point
Minor changes (formatting and typo)
adorilson
committed
ae42fea
View commit details
Copy full SHA for ae42fea
Browse repository at this point
[Doc] Making lint happy
adorilson
committed
4676daa
View commit details
Copy full SHA for 4676daa
Browse repository at this point
Commits on Jul 3, 2023
Merge branch 'main' into str_methods_2
adorilson
committed
7642f31
View commit details
Copy full SHA for 7642f31
Browse repository at this point
Update Doc/library/stdtypes.rst
Show description for de11c93
adorilson
and
hauntsaninja
authored
de11c93
View commit details
Copy full SHA for de11c93
Browse repository at this point
[DOC] Added some 'see also' to str methods
adorilson
committed
1695b93
View commit details
Copy full SHA for 1695b93
Browse repository at this point
[DOC] Moved 'For example' to the end of the previous paragraph
adorilson
committed
ad6b56b
View commit details
Copy full SHA for ad6b56b
Browse repository at this point
[DOC] Putting a space after # in comments on str methods
adorilson
committed
e4e1405
View commit details
Copy full SHA for e4e1405
Browse repository at this point
[DOC] Fixed inconsistent literal block quoting
adorilson
committed
2dfa3f2
View commit details
Copy full SHA for 2dfa3f2
Browse repository at this point
fix other comments
hauntsaninja
committed
27cc327
View commit details
Copy full SHA for 27cc327
Browse repository at this point
Commits on Sep 17, 2023
Merge branch 'main' into str_methods_2
adorilson
authored
13c01d7
View commit details
Copy full SHA for 13c01d7
Browse repository at this point
Commits on May 22, 2024
prepare for FF
blaisep
committed
03bef0a
View commit details
Copy full SHA for 03bef0a
Browse repository at this point
update the worflows files
blaisep
committed
9c8955e
View commit details
Copy full SHA for 9c8955e
Browse repository at this point
prepare for FF
blaisep
committed
e44d39c
View commit details
Copy full SHA for e44d39c
Browse repository at this point
Use the examples created by @adorilson
blaisep
committed
925c0be
View commit details
Copy full SHA for 925c0be
Browse repository at this point
Commits on May 23, 2024
Correct typos in rST formatting
blaisep
committed
679eac8
View commit details
Copy full SHA for 679eac8
Browse repository at this point
Commits on May 24, 2024
Merge pull request #1 from blaisep/pr-105670
Show description for 098d9f3
blaisep
authored
098d9f3
View commit details
Copy full SHA for 098d9f3
Browse repository at this point
Merge pull request #2 from blaisep/main
Show description for 7e7787e
blaisep
authored
7e7787e
View commit details
Copy full SHA for 7e7787e
Browse repository at this point
Commits on May 26, 2024
Apply suggestions from code review
Show description for 031bf40
blaisep
and
hugovk
authored
031bf40
View commit details
Copy full SHA for 031bf40
Browse repository at this point
Commits on May 27, 2024
Update stdtypes.rst with edits to content
Show description for 08fcf55
blaisep
authored
08fcf55
View commit details
Copy full SHA for 08fcf55
Browse repository at this point
Update unicode.rst
Show description for 1c55459
blaisep
authored
1c55459
View commit details
Copy full SHA for 1c55459
Browse repository at this point
Commits on May 28, 2024
Update Doc/library/stdtypes.rst
Show description for 30398db
blaisep
and
hugovk
authored
30398db
View commit details
Copy full SHA for 30398db
Browse repository at this point
Remove unrelated, conflicting files.
blaisep
committed
f76afc9
View commit details
Copy full SHA for f76afc9
Browse repository at this point
Merge remote-tracking branch 'upstream/main' into pr-105670
blaisep
committed
a0d7846
View commit details
Copy full SHA for a0d7846
Browse repository at this point
Fix trailing space and location of example.
blaisep
committed
c82e92c
View commit details
Copy full SHA for c82e92c
Browse repository at this point
Adjust the placement of examples more meticulously.
blaisep
committed
4d70dcf
View commit details
Copy full SHA for 4d70dcf
Browse repository at this point
Commits on Jun 5, 2024
Update Doc/library/stdtypes.rst
Show description for 48bed4c
blaisep
authored
48bed4c
View commit details
Copy full SHA for 48bed4c
Browse repository at this point
Update Doc/library/stdtypes.rst
Show description for dce8f2b
blaisep
authored
dce8f2b
View commit details
Copy full SHA for dce8f2b
Browse repository at this point
Update Doc/library/stdtypes.rst
Show description for 24c1f6a
blaisep
authored
24c1f6a
View commit details
Copy full SHA for 24c1f6a
Browse repository at this point
Commits on Jun 10, 2024
WIP update some examples
blaisep
committed
fb2fe01
View commit details
Copy full SHA for fb2fe01
Browse repository at this point
Merge branch 'pr-105670' of github.com:blaisep/cpython into pr-105670
blaisep
committed
0beabee
View commit details
Copy full SHA for 0beabee
Browse repository at this point
Commits on Jun 11, 2024
WIP Edit and change some examples
Show description for 02b2cd8
blaisep
and
lisacrispin
committed
02b2cd8
View commit details
Copy full SHA for 02b2cd8
Browse repository at this point
Commits on Jul 16, 2024
Extend the example for str.format_map
Show description for 0dd8138
blaisep
committed
0dd8138
View commit details
Copy full SHA for 0dd8138
Browse repository at this point
You can’t perform that action at this time.