FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-117518: Clarify PyTuple_GetItem() borrowed reference in the doc by vstinner · Pull Request #117920 · python/cpython · GitHub

/ cpython Public

gh-117518: Clarify PyTuple_GetItem() borrowed reference in the doc - #117920

Merged
encukou merged 2 commits into
python:mainfrom
vstinner:tuple_get_doc
Apr 19, 2024
Merged

gh-117518: Clarify PyTuple_GetItem() borrowed reference in the doc#117920
encukou merged 2 commits into
python:mainfrom
vstinner:tuple_get_doc

Conversation

vstinner commented Apr 16, 2024
edited by github-actions Bot
Loading

Copy link
Copy Markdown
Member

Copy link
Copy Markdown
Member Author

cc @encukou

Copy link
Copy Markdown
Contributor

The return value is already emphasised as being a borrowed reference:

It seems a bit strange to repeat this in the text below. Consider just adding the text that suggests the better approach.

Comment thread Doc/c-api/tuple.rst Outdated

Copy link
Copy Markdown
Member Author

@erlend-aasland @encukou: I applied @erlend-aasland's suggestion.

encukou merged commit 4605a19 into python:main Apr 19, 2024
encukou added the needs backport to 3.12 only security fixes label Apr 19, 2024

Copy link
Copy Markdown

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Apr 19, 2024
…doc (pythonGH-117920)

(cherry picked from commit 4605a19)

Co-authored-by: Victor Stinner <vstinner@python.org>

bedevere-app Bot commented Apr 19, 2024

Copy link
Copy Markdown

GH-118087 is a backport of this pull request to the 3.12 branch.

bedevere-app Bot removed the needs backport to 3.12 only security fixes label Apr 19, 2024
vstinner deleted the tuple_get_doc branch April 19, 2024 08:56
vstinner added a commit that referenced this pull request Apr 19, 2024
… doc (GH-117920) (#118087)

gh-117518: Clarify PyTuple_GetItem() borrowed reference in the doc (GH-117920)
(cherry picked from commit 4605a19)

Co-authored-by: Victor Stinner <vstinner@python.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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 skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL