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: Improve str.removeprefix() and str.removesuffix() docs by adorilson · Pull Request #143580 · python/cpython

Conversation

@adorilson

@adorilson adorilson commented Jan 8, 2026 •
edited by bedevere-app Bot
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

WIP to #106318

#106318: Improve str.removeprefix() and str.removesuffix() docs.


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

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

Sorry, something went wrong.

Uh oh!

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

All reactions
adorilson added 2 commits January 8, 2026 19:33
@adorilson
pythongh-106318: Add doctest role and 'See also' for str.removeprefix()
37cef7e
@adorilson
pythongh-106318: Add doctest role and 'See also' for str.removesuffix()
3eb32bd
@bedevere-app bedevere-app Bot added docs Documentation in the Doc dir skip news labels Jan 8, 2026
@github-project-automation github-project-automation Bot added this to Docs PRs Jan 8, 2026
@bedevere-app bedevere-app Bot added the awaiting review label Jan 8, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs Jan 8, 2026
@adorilson adorilson mentioned this pull request Jan 8, 2026
gh-106318: Add doctest role and 'See also' for str.removeprefix() #143579
Closed
@adorilson adorilson changed the title gh106318: Improve str.removeprefix() and str.removesuffix() docs gh-106318: Improve str.removeprefix() and str.removesuffix() docs Jan 8, 2026
@bedevere-app bedevere-app Bot mentioned this pull request Jan 8, 2026
Add examples to docs for str methods #106318
Open
@vstinner vstinner added needs backport to 3.13 only security fixes needs backport to 3.14 bugs and security fixes labels Jan 9, 2026
@vstinner
vstinner merged commit 6d6c7ed into python:main Jan 9, 2026
39 checks passed

Uh oh!

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

@bedevere-app bedevere-app Bot removed the awaiting review label Jan 9, 2026
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Jan 9, 2026
@miss-islington-app

miss-islington-app Bot commented Jan 9, 2026

Copy link
Copy Markdown

Thanks @adorilson for the PR, and @vstinner 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.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 9, 2026
@adorilson @miss-islington
pythongh-106318: Improve str.removeprefix() and str.removesuffix() do…
730b927
…cs (pythonGH-143580)

Add doctest role and 'See also'.
(cherry picked from commit 6d6c7ed)

Co-authored-by: Adorilson Bezerra <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 9, 2026
@adorilson @miss-islington
pythongh-106318: Improve str.removeprefix() and str.removesuffix() do…
995dae0
…cs (pythonGH-143580)

Add doctest role and 'See also'.
(cherry picked from commit 6d6c7ed)

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

bedevere-app Bot commented Jan 9, 2026

Copy link
Copy Markdown

GH-143614 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 9, 2026
@bedevere-app

bedevere-app Bot commented Jan 9, 2026

Copy link
Copy Markdown

GH-143615 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 9, 2026
@vstinner

vstinner commented Jan 9, 2026

Copy link
Copy Markdown
Member

Merged, thanks.

All reactions

Sorry, something went wrong.

Uh oh!

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

vstinner pushed a commit that referenced this pull request Jan 9, 2026
@miss-islington @adorilson
[3.14] gh-106318: Improve str.removeprefix() and str.removesuffix() d…
ae62d2b
…ocs (GH-143580) (#143614)

gh-106318: Improve str.removeprefix() and str.removesuffix() docs (GH-143580)

Add doctest role and 'See also'.
(cherry picked from commit 6d6c7ed)

Co-authored-by: Adorilson Bezerra <[email protected]>
vstinner pushed a commit that referenced this pull request Jan 9, 2026
@miss-islington @adorilson
[3.13] gh-106318: Improve str.removeprefix() and str.removesuffix() d…
bf7990c
…ocs (GH-143580) (#143615)

gh-106318: Improve str.removeprefix() and str.removesuffix() docs (GH-143580)

Add doctest role and 'See also'.
(cherry picked from commit 6d6c7ed)

Co-authored-by: Adorilson Bezerra <[email protected]>
@adorilson
adorilson deleted the 106318.removesuffix branch January 9, 2026 15:55
reidenong pushed a commit to reidenong/cpython that referenced this pull request Jan 12, 2026
@adorilson @reidenong
pythongh-106318: Improve str.removeprefix() and str.removesuffix() d…
d7bb4b8
…ocs (python#143580)

Add doctest role and 'See also'.
thunder-coding pushed a commit to thunder-coding/cpython that referenced this pull request Feb 15, 2026
@adorilson @thunder-coding
pythongh-106318: Improve str.removeprefix() and str.removesuffix() d…
01d24e3
…ocs (python#143580)

Add doctest role and 'See also'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

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

Assignees

No one assigned

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.

2 participants

@adorilson @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 01402520 — 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.