Skip to content

Conversation

@ngoldbaum
Copy link
Contributor

@ngoldbaum ngoldbaum commented Jan 26, 2026

Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

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

I propose to simplify the wording. And I propose to not go into the details about why an error can happen :)

Co-authored-by: sobolevn <mail@sobolevn.me>
@ngoldbaum ngoldbaum changed the title gh-144257: document return values and failure conditions of PyModule_SetDocString gh-144257: document return values of PyModule_SetDocString Jan 26, 2026
Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

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

Thank you!

I will keep this open for a bit, so others can also take a look :)
And merge it in several days.

@ZeroIntensity ZeroIntensity added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Jan 27, 2026
@ZeroIntensity ZeroIntensity merged commit 3e9a5b0 into python:main Jan 27, 2026
37 checks passed
@miss-islington-app
Copy link

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

@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs Jan 27, 2026
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 27, 2026
…honGH-144258)

(cherry picked from commit 3e9a5b0)

Co-authored-by: Nathan Goldbaum <nathan.goldbaum@gmail.com>
Co-authored-by: sobolevn <mail@sobolevn.me>
@miss-islington-app
Copy link

Sorry, @ngoldbaum and @ZeroIntensity, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 3e9a5b022f01fa95b4485fcf2c0c87bfb9fff837 3.13

@bedevere-app
Copy link

bedevere-app bot commented Jan 27, 2026

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

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Jan 27, 2026
@ZeroIntensity
Copy link
Member

@ngoldbaum Would you mind handling the 3.13 backport?

ZeroIntensity pushed a commit that referenced this pull request Jan 27, 2026
…-144258) (GH-144263)

gh-144257: document return values of PyModule_SetDocString (GH-144258)
(cherry picked from commit 3e9a5b0)

Co-authored-by: Nathan Goldbaum <nathan.goldbaum@gmail.com>
Co-authored-by: sobolevn <mail@sobolevn.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir needs backport to 3.13 bugs and security fixes skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants