Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Doc] Remove unnecessary quotes from typing module#137207

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
orsenthil merged 5 commits intopython:mainfromadorilson:remove_quotes
Aug 8, 2025

Conversation

@adorilson
Copy link
Contributor

@adorilsonadorilson commentedJul 29, 2025
edited by github-actionsbot
Loading

vstinnerand others added5 commitsJuly 29, 2025 14:46
…#106335)Remove private _PyThreadState and _PyInterpreterState C APIfunctions: move them to the internal C API (pycore_pystate.h andpycore_interp.h). Don't export most of these functions anymore, butstill export functions used by tests.Remove _PyThreadState_Prealloc() and _PyThreadState_Init() from the CAPI, but keep it in the stable API.
@StanFromIreland
Copy link
Member

This is a purely cosmetic change IMO, I see little benefit in removing the quotes. Have they caused confusion?

@adorilson
Copy link
ContributorAuthor

This is a purely cosmetic change IMO, I see little benefit in removing the quotes.

Beautiful is better than ugly. 🙂

In fact, this is purely cosmetic. But the more common form in docs is without these quotes (in a fast search).

Have they caused confusion?

It doesn´t cause confusion per si, in an absolute way or a concrete case for now. Itcan cause confusion, mainly because they are inside crases, both documentation maintainers and translators as well.

@JelleZijlstra
Copy link
Member

Aren't the quotes correct here because we're quoting the title of the work being referred to?

StanFromIreland reacted with thumbs up emoji

@adorilson
Copy link
ContributorAuthor

Aren't the quotes correct here because we're quoting the title of the work being referred to?

It could be the author's intention, but it isn't the pattern. If it were true, we should put more quotes everywhere. I don't think it's a good idea.

At the same module, we have

image

When the link is all over the title, the docs style cares about the title being highlighted. I think it is enough and quotes are unnecessary (and ugly and more complicated to maintain).

However, in the case of

“Type System Reference” section ofthe mypy docs

the link isn't about the title. I guess that is because the section hasn't been anchored in mypy docs (it is only a menu separator), so it is not possible to link it directly. Here, the quotes make sense.

@orsenthil
Copy link
Member

I agree with other reviewers on their comment. There are only two outcomes, we close this PR or accept it. I did aag seealso -A 3 | less to see the inconsistency in docs, realized it isokay to merge this PR.

@orsenthilorsenthil merged commitf06fcb7 intopython:mainAug 8, 2025
38 checks passed
@github-project-automationgithub-project-automationbot moved this fromTodo toDone inDocs PRsAug 8, 2025
@orsenthilorsenthil added needs backport to 3.13bugs and security fixes needs backport to 3.14bugs and security fixes labelsAug 8, 2025
@miss-islington-app
Copy link

Thanks@adorilson for the PR, and@orsenthil for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@miss-islington-app
Copy link

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestAug 8, 2025
*pythongh-106320: Remove private _PyInterpreterState functions (pythonGH-106335)Remove private _PyThreadState and _PyInterpreterState C APIfunctions: move them to the internal C API (pycore_pystate.h andpycore_interp.h). Don't export most of these functions anymore, butstill export functions used by tests.Remove _PyThreadState_Prealloc() and _PyThreadState_Init() from the CAPI, but keep it in the stable API.* Doc: minor change* Revert "Doc: minor change"This reverts commitebfa093.* [Doc] Remove unnecessary quotes from typing (See Also section)* [Doc] Remove unnecessary quotes from typing---------(cherry picked from commitf06fcb7)Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>Co-authored-by: Victor Stinner <vstinner@python.org>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestAug 8, 2025
*pythongh-106320: Remove private _PyInterpreterState functions (pythonGH-106335)Remove private _PyThreadState and _PyInterpreterState C APIfunctions: move them to the internal C API (pycore_pystate.h andpycore_interp.h). Don't export most of these functions anymore, butstill export functions used by tests.Remove _PyThreadState_Prealloc() and _PyThreadState_Init() from the CAPI, but keep it in the stable API.* Doc: minor change* Revert "Doc: minor change"This reverts commitebfa093.* [Doc] Remove unnecessary quotes from typing (See Also section)* [Doc] Remove unnecessary quotes from typing---------(cherry picked from commitf06fcb7)Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>Co-authored-by: Victor Stinner <vstinner@python.org>
@bedevere-app
Copy link

GH-137540 is a backport of this pull request to the3.13 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.13bugs and security fixes labelAug 8, 2025
@bedevere-app
Copy link

GH-137541 is a backport of this pull request to the3.14 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.14bugs and security fixes labelAug 8, 2025
orsenthil pushed a commit that referenced this pull requestAug 8, 2025
…#137540)[Doc] Remove unnecessary quotes from typing module (GH-137207)*gh-106320: Remove private _PyInterpreterState functions (GH-106335)Remove private _PyThreadState and _PyInterpreterState C APIfunctions: move them to the internal C API (pycore_pystate.h andpycore_interp.h). Don't export most of these functions anymore, butstill export functions used by tests.Remove _PyThreadState_Prealloc() and _PyThreadState_Init() from the CAPI, but keep it in the stable API.* Doc: minor change* Revert "Doc: minor change"This reverts commitebfa093.* [Doc] Remove unnecessary quotes from typing (See Also section)* [Doc] Remove unnecessary quotes from typing---------(cherry picked from commitf06fcb7)Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>Co-authored-by: Victor Stinner <vstinner@python.org>
hugovk pushed a commit that referenced this pull requestAug 8, 2025
…#137541)Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>Co-authored-by: Victor Stinner <vstinner@python.org>
Agent-Hellboy pushed a commit to Agent-Hellboy/cpython that referenced this pull requestAug 19, 2025
*pythongh-106320: Remove private _PyInterpreterState functions (python#106335)Remove private _PyThreadState and _PyInterpreterState C APIfunctions: move them to the internal C API (pycore_pystate.h andpycore_interp.h). Don't export most of these functions anymore, butstill export functions used by tests.Remove _PyThreadState_Prealloc() and _PyThreadState_Init() from the CAPI, but keep it in the stable API.* Doc: minor change* Revert "Doc: minor change"This reverts commitebfa093.* [Doc] Remove unnecessary quotes from typing (See Also section)* [Doc] Remove unnecessary quotes from typing---------Co-authored-by: Victor Stinner <vstinner@python.org>
kumaraditya303 pushed a commit to miss-islington/cpython that referenced this pull requestSep 9, 2025
…37207) (python#137541)Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>Co-authored-by: Victor Stinner <vstinner@python.org>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@orsenthilorsenthilorsenthil approved these changes

@JelleZijlstraJelleZijlstraAwaiting requested review from JelleZijlstraJelleZijlstra is a code owner

@AlexWaygoodAlexWaygoodAwaiting requested review from AlexWaygoodAlexWaygood is a code owner

Assignees

No one assigned

Labels

docsDocumentation in the Doc dirskip issueskip news

Projects

Status: Done

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@adorilson@StanFromIreland@JelleZijlstra@orsenthil@vstinner

[8]ページ先頭

©2009-2025 Movatter.jp