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 examples for str.partition() method by adorilson · Pull Request #142823 · python/cpython

Conversation

@adorilson

@adorilson adorilson commented Dec 16, 2025 •
edited by github-actions Bot
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

WIP to #106318

#106318: Add examples for str.partition() method

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

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

Sorry, something went wrong.

Uh oh!

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

All reactions
@adorilson
pythongh-106318: Add examples for str.partition() method
501a327
@bedevere-app bedevere-app Bot added docs Documentation in the Doc dir skip news labels Dec 16, 2025
@github-project-automation github-project-automation Bot added this to Docs PRs Dec 16, 2025
@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs Dec 16, 2025
@bedevere-app bedevere-app Bot mentioned this pull request Dec 16, 2025
Add examples to docs for str methods #106318
Open
@bedevere-app bedevere-app Bot added the awaiting review label Dec 16, 2025
@adorilson
pythongh-106318: Add 'See also rpartition()' on str.partition() method
e53633b
StanFromIreland
StanFromIreland reviewed Jan 9, 2026
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.

I suggest adding a third example, one that shows what happens when there are multiple of sep in the string.

Sorry, something went wrong.

Uh oh!

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

All reactions
@adorilson
pythongh-106318: Add a third example for str.partition() method
d714e42
@adorilson

adorilson commented Jan 11, 2026

Copy link
Copy Markdown
Contributor Author

I suggest adding a third example, one that shows what happens when there are multiple of sep in the string.

Done.

All reactions

Sorry, something went wrong.

Uh oh!

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

@adorilson
adorilson requested a review from StanFromIreland January 11, 2026 13:18
@adorilson
pythongh-106318: Fix indent on the str.partition() method
9de07db
@hugovk
hugovk merged commit 432ddd9 into python:main Feb 8, 2026
28 checks passed

Uh oh!

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

@hugovk hugovk added needs backport to 3.13 only security fixes needs backport to 3.14 bugs and security fixes labels Feb 8, 2026
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Feb 8, 2026
@miss-islington-app

miss-islington-app Bot commented Feb 8, 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, 3.14.
🐍🍒⛏🤖

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 awaiting review label Feb 8, 2026
@miss-islington-app

miss-islington-app Bot commented Feb 8, 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 Feb 8, 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 Feb 8, 2026
@adorilson @miss-islington
pythongh-106318: Add examples for str.partition() method (pythonGH-14…
610d9fa
…2823)

(cherry picked from commit 432ddd9)

Co-authored-by: Adorilson Bezerra <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 8, 2026
@adorilson @miss-islington
pythongh-106318: Add examples for str.partition() method (pythonGH-14…
10edc01
…2823)

(cherry picked from commit 432ddd9)

Co-authored-by: Adorilson Bezerra <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 8, 2026
@adorilson @miss-islington
pythongh-106318: Add examples for str.partition() method (pythonGH-14…
c80f085
…2823)

(cherry picked from commit 432ddd9)

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

bedevere-app Bot commented Feb 8, 2026

Copy link
Copy Markdown

GH-144611 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 Feb 8, 2026
@bedevere-app

bedevere-app Bot commented Feb 8, 2026

Copy link
Copy Markdown

GH-144612 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 Feb 8, 2026
@miss-islington-app

This comment was marked as outdated.

Sign in to view
@miss-islington-app miss-islington-app Bot assigned hugovk Feb 8, 2026
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 8, 2026
@adorilson @miss-islington
pythongh-106318: Add examples for str.partition() method (pythonGH-14…
95e2ea3
…2823)

(cherry picked from commit 432ddd9)

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

This comment was marked as outdated.

Sign in to view
hugovk pushed a commit that referenced this pull request Feb 8, 2026
@miss-islington @adorilson
[3.13] gh-106318: Add examples for str.partition() method (GH-142823) (…
6884288
…#144612)

gh-106318: Add examples for str.partition() method (GH-142823)
(cherry picked from commit 432ddd9)

Co-authored-by: Adorilson Bezerra <[email protected]>
hugovk pushed a commit that referenced this pull request Feb 8, 2026
@miss-islington @adorilson
[3.14] gh-106318: Add examples for str.partition() method (GH-142823) (…
27baa1c
…#144611)

gh-106318: Add examples for str.partition() method (GH-142823)
(cherry picked from commit 432ddd9)

Co-authored-by: Adorilson Bezerra <[email protected]>
@adorilson
adorilson deleted the 106318.partition branch February 11, 2026 17:40
thunder-coding pushed a commit to thunder-coding/cpython that referenced this pull request Feb 15, 2026
@adorilson @thunder-coding
pythongh-106318: Add examples for str.partition() method (python#142823)
8af74ce
@raminfp raminfp mentioned this pull request Feb 26, 2026
_json: Use After Free in encoder_encode_key_value() - borrowed 'key' used after free #145244
Closed
ljfp pushed a commit to ljfp/cpython that referenced this pull request Apr 25, 2026
@adorilson @ljfp
pythongh-106318: Add examples for str.partition() method (python#142823)
c2254b6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@StanFromIreland StanFromIreland Awaiting requested review from StanFromIreland

Uh oh!

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

Assignees

@hugovk hugovk

Labels

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.

3 participants

@adorilson @StanFromIreland @hugovk
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.