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.format() by adorilson · Pull Request #137018 · 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

Besides adding two more examples to make the argument positions more explicit, I added the .. doctest:: directive.

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

📚 Documentation preview 📚: https://cpython-previews--137018.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.format()
3608c8c
@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
Yoav11
Yoav11 reviewed Jul 23, 2025
View reviewed changes
Comment thread Doc/library/stdtypes.rst Resolved

Uh oh!

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

@adorilson
pythongh-106318: Add example for str.format() with keyword argument
06a6532
Yoav11
Yoav11 approved these changes Aug 4, 2025
View reviewed changes

@Yoav11 Yoav11 left a comment

Copy link
Copy Markdown
Contributor

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.

nice! 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 Aug 4, 2025
@hugovk
hugovk merged commit 0cde70b into python:main Nov 24, 2025
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Nov 24, 2025
@bedevere-app bedevere-app Bot removed the awaiting core review label Nov 24, 2025
@hugovk hugovk added awaiting core review needs backport to 3.13 only security fixes needs backport to 3.14 bugs and security fixes labels Nov 24, 2025
@miss-islington-app

miss-islington-app Bot commented Nov 24, 2025

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 Nov 24, 2025

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 Nov 24, 2025
@adorilson @miss-islington
pythongh-106318: Add example for str.format() (pythonGH-137018)
82df8c3
(cherry picked from commit 0cde70b)

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

bedevere-app Bot commented Nov 24, 2025

Copy link
Copy Markdown

GH-141903 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 Nov 24, 2025
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 24, 2025
@adorilson @miss-islington
pythongh-106318: Add example for str.format() (pythonGH-137018)
87fe718
(cherry picked from commit 0cde70b)

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

bedevere-app Bot commented Nov 24, 2025

Copy link
Copy Markdown

GH-141904 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 Nov 24, 2025
hugovk pushed a commit that referenced this pull request Nov 24, 2025
@miss-islington @adorilson
[3.14] gh-106318: Add example for str.format() (GH-137018) (#141904)
3edc944
Co-authored-by: Adorilson Bezerra <[email protected]>
hugovk pushed a commit that referenced this pull request Nov 24, 2025
@miss-islington @adorilson
[3.13] gh-106318: Add example for str.format() (GH-137018) (#141903)
06db02f
Co-authored-by: Adorilson Bezerra <[email protected]>
StanFromIreland pushed a commit to StanFromIreland/cpython that referenced this pull request Dec 6, 2025
@adorilson @StanFromIreland
pythongh-106318: Add example for str.format() (python#137018)
6a5f5fd
ashm-dev pushed a commit to ashm-dev/cpython that referenced this pull request Dec 8, 2025
@adorilson @ashm-dev
pythongh-106318: Add example for str.format() (python#137018)
576f272
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@Yoav11 Yoav11 Yoav11 approved these changes
Reviewers whose approvals may not affect merge requirements

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 @Yoav11 @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 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.