GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gh-106318: Add example for str.index() by adorilson · Pull Request #137023 · python/cpython

Conversation

@adorilson

@adorilson adorilson commented Jul 22, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

WIP to #106318

  • Issue: Add examples to docs for str methods #106318

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
vstinner and others added 4 commits July 22, 2025 15:56
@vstinner @adorilson
pythongh-106320: Remove private _PyInterpreterState functions (python…
3253a52
…#106335)

Remove private _PyThreadState and _PyInterpreterState C API
functions: move them to the internal C API (pycore_pystate.h and
pycore_interp.h). Don't export most of these functions anymore, but
still export functions used by tests.

Remove _PyThreadState_Prealloc() and _PyThreadState_Init() from the C
API, but keep it in the stable API.
@adorilson
Doc: minor change
fee3f11
@adorilson
Revert "Doc: minor change"
ed4cc6f
This reverts commit ebfa093.
@adorilson
pythongh-106318: Add example for str.index()
e3c43bb
@bedevere-app bedevere-app Bot added awaiting review docs Documentation in the Doc dir skip news labels Jul 22, 2025
@github-project-automation github-project-automation Bot added this to Docs PRs Jul 22, 2025
@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs Jul 22, 2025
@bedevere-app bedevere-app Bot mentioned this pull request Jul 22, 2025
Add examples to docs for str methods #106318
Open
StanFromIreland
StanFromIreland approved these changes Dec 19, 2025
View reviewed changes

@StanFromIreland StanFromIreland left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bedevere-app bedevere-app Bot added awaiting core review and removed awaiting review labels Dec 19, 2025
@hugovk
hugovk merged commit 4fb6a31 into python:main Jan 6, 2026
4 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the awaiting core review label Jan 6, 2026
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Jan 6, 2026
@hugovk hugovk added awaiting core review needs backport to 3.13 only security fixes needs backport to 3.14 bugs and security fixes labels Jan 6, 2026
@miss-islington-app

miss-islington-app Bot commented Jan 6, 2026

Copy link
Copy Markdown

Thanks @adorilson for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@miss-islington-app

miss-islington-app Bot commented Jan 6, 2026

Copy link
Copy Markdown

Thanks @adorilson for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 6, 2026
@adorilson @miss-islington
pythongh-106318: Add example for str.index() (pythonGH-137023)
3982000
(cherry picked from commit 4fb6a31)

Co-authored-by: Adorilson Bezerra <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 6, 2026
@adorilson @miss-islington
pythongh-106318: Add example for str.index() (pythonGH-137023)
e3cd73a
(cherry picked from commit 4fb6a31)

Co-authored-by: Adorilson Bezerra <[email protected]>
@bedevere-app

bedevere-app Bot commented Jan 6, 2026

Copy link
Copy Markdown

GH-143501 is a backport of this pull request to the 3.13 branch.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 only security fixes label Jan 6, 2026
@bedevere-app

bedevere-app Bot commented Jan 6, 2026

Copy link
Copy Markdown

GH-143502 is a backport of this pull request to the 3.14 branch.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Jan 6, 2026
hugovk pushed a commit that referenced this pull request Jan 6, 2026
@miss-islington @adorilson
[3.14] gh-106318: Add example for str.index() (GH-137023) (#143502)
951bb2a
Co-authored-by: Adorilson Bezerra <[email protected]>
hugovk pushed a commit that referenced this pull request Jan 6, 2026
@miss-islington @adorilson
[3.13] gh-106318: Add example for str.index() (GH-137023) (#143501)
0a8e97e
Co-authored-by: Adorilson Bezerra <[email protected]>
@adorilson
adorilson deleted the 106318.index branch January 6, 2026 22:53
thunder-coding pushed a commit to thunder-coding/cpython that referenced this pull request Feb 15, 2026
@adorilson @thunder-coding
pythongh-106318: Add example for str.index() (python#137023)
1ab71a7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@StanFromIreland StanFromIreland StanFromIreland approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

awaiting core review docs Documentation in the Doc dir skip news

Projects

Docs PRs
Status: Done

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@adorilson @StanFromIreland @hugovk @vstinner
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.