René's URL Explorer Experiment


Title: gh-106318: Add example for str.index() by adorilson · Pull Request #137023 · python/cpython · GitHub

Open Graph Title: gh-106318: Add example for str.index() by adorilson · Pull Request #137023 · python/cpython

X Title: gh-106318: Add example for str.index() by adorilson · Pull Request #137023 · python/cpython

Description: WIP to #106318 Issue: Add examples to docs for str methods #106318 📚 Documentation preview 📚: https://cpython-previews--137023.org.readthedocs.build/

Open Graph Description: WIP to #106318 Issue: Add examples to docs for str methods #106318 📚 Documentation preview 📚: https://cpython-previews--137023.org.readthedocs.build/

X Description: WIP to #106318 Issue: Add examples to docs for str methods #106318 📚 Documentation preview 📚: https://cpython-previews--137023.org.readthedocs.build/

Opengraph URL: https://github.com/python/cpython/pull/137023

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:426a816a-6d17-2d8a-f9a7-7d67de3617df
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE476:21E6C4:963B24:D10995:696A2F6F
html-safe-nonce169b80b4c3f5bc4287ee8fa47c71452a65834d77cdc1cb163dea45225dfa321d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDc2OjIxRTZDNDo5NjNCMjQ6RDEwOTk1OjY5NkEyRjZGIiwidmlzaXRvcl9pZCI6Ijg3MTc2ODI4NjgzNjUxNzY2ODciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac6b94dcfe95eb47c732767638dab02b72a4d2bd0ceda4abf47f7f3ef70e9796ae
hovercard-subject-tagpull_request:2686515880
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/137023/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/d7548c2adf1bf01bd5120c16019bd8f842edffa01cb0091cc75d86efaf74edad/python/cpython/pull/137023
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d7548c2adf1bf01bd5120c16019bd8f842edffa01cb0091cc75d86efaf74edad/python/cpython/pull/137023
og:image:altWIP to #106318 Issue: Add examples to docs for str methods #106318 📚 Documentation preview 📚: https://cpython-previews--137023.org.readthedocs.build/
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameadorilson
hostnamegithub.com
expected-hostnamegithub.com
Noneade130928b3890d20ecf9c887468a17e88d5c9a740ea2a85c2c2162e7c58e623
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec00842167ca2e5b13e8171812965d503e925ece6
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/137023#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F137023
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F137023
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/137023
Reloadhttps://github.com/python/cpython/pull/137023
Reloadhttps://github.com/python/cpython/pull/137023
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/137023
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/137023
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/137023#issue-comment-box
hugovkhttps://github.com/hugovk
python:mainhttps://github.com/python/cpython/tree/main
adorilson:106318.indexhttps://github.com/adorilson/cpython/tree/106318.index
gh-106318: Add example for str.index() https://github.com/python/cpython/pull/137023#top
hugovkhttps://github.com/hugovk
python:mainhttps://github.com/python/cpython/tree/main
adorilson:106318.indexhttps://github.com/adorilson/cpython/tree/106318.index
Conversation 5 https://github.com/python/cpython/pull/137023
Commits 4 https://github.com/python/cpython/pull/137023/commits
Checks 44 https://github.com/python/cpython/pull/137023/checks
Files changed 1 https://github.com/python/cpython/pull/137023/files
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/adorilson
adorilsonhttps://github.com/adorilson
Jul 22, 2025https://github.com/python/cpython/pull/137023#issue-3253745978
Please reload this pagehttps://github.com/python/cpython/pull/137023
#106318https://github.com/python/cpython/issues/106318
Add examples to docs for str methods #106318https://github.com/python/cpython/issues/106318
https://cpython-previews--137023.org.readthedocs.build/https://cpython-previews--137023.org.readthedocs.build/
Please reload this pagehttps://github.com/python/cpython/pull/137023
vstinnerhttps://github.com/vstinner
July 22, 2025 15:56https://github.com/python/cpython/pull/137023#commits-pushed-3253a52
https://github.com/vstinner
https://github.com/adorilson
pythongh-106320https://github.com/python/cpython/issues/106320
: Remove private _PyInterpreterState functions (https://github.com/python/cpython/pull/137023/commits/3253a52f9de6d0b470b6e5ad487b8d7eef92d0dd
python…https://github.com/python/cpython/pull/106335
3253a52https://github.com/python/cpython/pull/137023/commits/3253a52f9de6d0b470b6e5ad487b8d7eef92d0dd
…#106335https://github.com/python/cpython/pull/106335
https://github.com/adorilson
Doc: minor changehttps://github.com/python/cpython/pull/137023/commits/fee3f116d8c0e6c667d1eaa9bb7d5c3b195705a5
fee3f11https://github.com/python/cpython/pull/137023/commits/fee3f116d8c0e6c667d1eaa9bb7d5c3b195705a5
https://github.com/adorilson
Revert "Doc: minor change"https://github.com/python/cpython/pull/137023/commits/ed4cc6fd5adac9505c70a07a7b73ead613ad95e6
ed4cc6fhttps://github.com/python/cpython/pull/137023/commits/ed4cc6fd5adac9505c70a07a7b73ead613ad95e6
ebfa093https://github.com/adorilson/cpython/commit/ebfa0937c2caf0110ab1540f14956d56fe925092
https://github.com/adorilson
pythongh-106318https://github.com/python/cpython/issues/106318
: Add example for str.index()https://github.com/python/cpython/pull/137023/commits/e3c43bb0c291c3f5c834caba6d840f9a2888e2be
e3c43bbhttps://github.com/python/cpython/pull/137023/commits/e3c43bb0c291c3f5c834caba6d840f9a2888e2be
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
docs https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Adocs
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Jul 22, 2025https://github.com/python/cpython/pull/137023#event-18758964487
https://github.com/apps/github-project-automation
github-project-automationhttps://github.com/apps/github-project-automation
Docs PRshttps://github.com/orgs/python/projects/50
Jul 22, 2025https://github.com/python/cpython/pull/137023#event-18758965244
https://github.com/apps/github-project-automation
github-project-automationhttps://github.com/apps/github-project-automation
Docs PRshttps://github.com/orgs/python/projects/50
Jul 22, 2025https://github.com/python/cpython/pull/137023#event-18758965576
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jul 22, 2025 https://github.com/python/cpython/pull/137023#ref-issue-1784190846
Add examples to docs for str methods #106318 https://github.com/python/cpython/issues/106318
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
Dec 19, 2025 https://github.com/python/cpython/pull/137023#pullrequestreview-3598796608
View reviewed changes https://github.com/python/cpython/pull/137023/files/e3c43bb0c291c3f5c834caba6d840f9a2888e2be
StanFromIrelandhttps://github.com/StanFromIreland
https://github.com/python/cpython/pull/137023#pullrequestreview-3598796608
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/137023
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Dec 19, 2025https://github.com/python/cpython/pull/137023#event-21671838659
https://github.com/hugovk
hugovkhttps://github.com/hugovk
4fb6a31https://github.com/python/cpython/commit/4fb6a31bce36c8e04c0bda63f13467fc594b4425
Jan 6, 2026https://github.com/python/cpython/pull/137023#event-21885558425
Please reload this pagehttps://github.com/python/cpython/pull/137023
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Jan 6, 2026https://github.com/python/cpython/pull/137023#event-21885559198
https://github.com/apps/github-project-automation
github-project-automationhttps://github.com/apps/github-project-automation
Docs PRshttps://github.com/orgs/python/projects/50
Jan 6, 2026https://github.com/python/cpython/pull/137023#event-21885559731
https://github.com/hugovk
hugovkhttps://github.com/hugovk
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
Jan 6, 2026https://github.com/python/cpython/pull/137023#event-21885559659
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Jan 6, 2026https://github.com/python/cpython/pull/137023#issuecomment-3716469387
@adorilsonhttps://github.com/adorilson
@hugovkhttps://github.com/hugovk
Please reload this pagehttps://github.com/python/cpython/pull/137023
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Jan 6, 2026https://github.com/python/cpython/pull/137023#issuecomment-3716469409
@adorilsonhttps://github.com/adorilson
@hugovkhttps://github.com/hugovk
Please reload this pagehttps://github.com/python/cpython/pull/137023
miss-islingtonhttps://github.com/miss-islington
Jan 6, 2026 https://github.com/python/cpython/pull/137023#ref-commit-3982000
https://github.com/adorilson
https://github.com/miss-islington
pythongh-106318https://github.com/python/cpython/issues/106318
: Add example for str.index() (https://github.com/miss-islington/cpython/commit/39820000442adf8c0c66aede05702526218bd0ac
pythonGH-137023https://github.com/python/cpython/pull/137023
)https://github.com/miss-islington/cpython/commit/39820000442adf8c0c66aede05702526218bd0ac
3982000https://github.com/miss-islington/cpython/commit/39820000442adf8c0c66aede05702526218bd0ac
4fb6a31https://github.com/miss-islington/cpython/commit/4fb6a31bce36c8e04c0bda63f13467fc594b4425
miss-islingtonhttps://github.com/miss-islington
Jan 6, 2026 https://github.com/python/cpython/pull/137023#ref-commit-e3cd73a
https://github.com/adorilson
https://github.com/miss-islington
pythongh-106318https://github.com/python/cpython/issues/106318
: Add example for str.index() (https://github.com/miss-islington/cpython/commit/e3cd73a0e44099dc25f7aece140212d584efca99
pythonGH-137023https://github.com/python/cpython/pull/137023
)https://github.com/miss-islington/cpython/commit/e3cd73a0e44099dc25f7aece140212d584efca99
e3cd73ahttps://github.com/miss-islington/cpython/commit/e3cd73a0e44099dc25f7aece140212d584efca99
4fb6a31https://github.com/miss-islington/cpython/commit/4fb6a31bce36c8e04c0bda63f13467fc594b4425
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jan 6, 2026https://github.com/python/cpython/pull/137023#issuecomment-3716470025
GH-143501https://github.com/python/cpython/pull/143501
3.13 branchhttps://github.com/python/cpython/tree/3.13
Please reload this pagehttps://github.com/python/cpython/pull/137023
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
Jan 6, 2026https://github.com/python/cpython/pull/137023#event-21885563583
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jan 6, 2026https://github.com/python/cpython/pull/137023#issuecomment-3716470174
GH-143502https://github.com/python/cpython/pull/143502
3.14 branchhttps://github.com/python/cpython/tree/3.14
Please reload this pagehttps://github.com/python/cpython/pull/137023
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
Jan 6, 2026https://github.com/python/cpython/pull/137023#event-21885564690
hugovkhttps://github.com/hugovk
Jan 6, 2026 https://github.com/python/cpython/pull/137023#ref-commit-951bb2a
https://github.com/miss-islington
https://github.com/adorilson
[3.14]https://github.com/python/cpython/commit/951bb2ab4b5f63ff77a1f6b00b5f6527bc2ce0b0
gh-106318https://github.com/python/cpython/issues/106318
: Add example for str.index() (https://github.com/python/cpython/commit/951bb2ab4b5f63ff77a1f6b00b5f6527bc2ce0b0
GH-137023https://github.com/python/cpython/pull/137023
) (https://github.com/python/cpython/commit/951bb2ab4b5f63ff77a1f6b00b5f6527bc2ce0b0
#143502https://github.com/python/cpython/pull/143502
)https://github.com/python/cpython/commit/951bb2ab4b5f63ff77a1f6b00b5f6527bc2ce0b0
951bb2ahttps://github.com/python/cpython/commit/951bb2ab4b5f63ff77a1f6b00b5f6527bc2ce0b0
hugovkhttps://github.com/hugovk
Jan 6, 2026 https://github.com/python/cpython/pull/137023#ref-commit-0a8e97e
https://github.com/miss-islington
https://github.com/adorilson
[3.13]https://github.com/python/cpython/commit/0a8e97e17428710a7edb35862ce98dfdc2147da3
gh-106318https://github.com/python/cpython/issues/106318
: Add example for str.index() (https://github.com/python/cpython/commit/0a8e97e17428710a7edb35862ce98dfdc2147da3
GH-137023https://github.com/python/cpython/pull/137023
) (https://github.com/python/cpython/commit/0a8e97e17428710a7edb35862ce98dfdc2147da3
#143501https://github.com/python/cpython/pull/143501
)https://github.com/python/cpython/commit/0a8e97e17428710a7edb35862ce98dfdc2147da3
0a8e97ehttps://github.com/python/cpython/commit/0a8e97e17428710a7edb35862ce98dfdc2147da3
https://github.com/adorilson
adorilsonhttps://github.com/adorilson
January 6, 2026 22:53https://github.com/python/cpython/pull/137023#event-21886467047
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F137023
https://github.com/StanFromIreland
StanFromIreland https://github.com/StanFromIreland
https://github.com/python/cpython/pull/137023/files/e3c43bb0c291c3f5c834caba6d840f9a2888e2be
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
docs https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Adocs
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Docs PRs https://github.com/orgs/python/projects/50
Please reload this pagehttps://github.com/python/cpython/pull/137023
https://github.com/adorilson
https://github.com/StanFromIreland
https://github.com/hugovk
https://github.com/vstinner
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.