Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-130814: Enhance documentation for Python C API type objects #130817

Merged
merged 10 commits into from
Mar 14, 2025

Conversation

sharktide
Copy link
Contributor

@sharktide sharktide commented Mar 4, 2025

Update from

Type Objects
============

to

Type Object Structures
======================

Based on issue #130814

Copy link

cpython-cla-bot bot commented Mar 4, 2025

All commit authors signed the Contributor License Agreement.
CLA signed

@bedevere-app
Copy link

bedevere-app bot commented Mar 4, 2025

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@sharktide sharktide changed the title Rename typeobj.rst title for issue #130814 Fix issue #130814: Improve documentation for type objects Mar 4, 2025
@sharktide sharktide changed the title Fix issue #130814: Improve documentation for type objects gh-130814: Enhance documentation for Python C API type objects Mar 4, 2025
Copy link
Member

@ZeroIntensity ZeroIntensity left a comment

Choose a reason for hiding this comment

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

I'm not particularly convinced we need this, but perhaps it's worth considering. cc @picnixz--do you think there's any added clarity here?

@ZeroIntensity
Copy link
Member

@picnixz (Sorry, I'm not sure why the tag didn't work the first time.)

@sharktide
Copy link
Contributor Author

If It helps here is the documentation preview:
📚 Documentation preview 📚: https://cpython-previews--130817.org.readthedocs.build/

The changed page is to add clarity since there are two pages with different content with the same title:

preview new page

original page

The other page with the same title is this

@picnixz picnixz self-requested a review March 4, 2025 13:15
@picnixz
Copy link
Member

picnixz commented Mar 4, 2025

I'm not sure I'll have time for review today. And I'm leaving for 10 days so I won't be back until the mid/end of next week

@StanFromIreland
Copy link
Contributor

StanFromIreland commented Mar 4, 2025

@ZeroIntensity You tagged @picnixz--do as it isn't smart enough to split it. (I've made this mistake before too :-)

@StanFromIreland
Copy link
Contributor

StanFromIreland commented Mar 4, 2025

@sharktide You do not need to update the branch

(This should be made more clear in the devguide)

@sharktide
Copy link
Contributor Author

ok

@picnixz picnixz self-assigned this Mar 13, 2025
@picnixz
Copy link
Member

picnixz commented Mar 14, 2025

do you think there's any added clarity here?

We don't necessarily need clarity, but it might be better for Sphinx indexing and search. (Otherwise you have two titles that are exactly the same). Also, the previous section is https://docs.python.org/3/c-api/structures.html so the notion of structure could already be in the mind of the reader.

@picnixz picnixz merged commit 6b932ed into python:main Mar 14, 2025
28 checks passed
@picnixz picnixz added needs backport to 3.12 bug and security fixes needs backport to 3.13 bugs and security fixes labels Mar 14, 2025
@miss-islington-app
Copy link

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

@miss-islington-app
Copy link

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 14, 2025
…ythonGH-130817)

The "Type Objects" title in `c-api/typeobj.rst`, duplicating the title of `c-api/type.rst`,
has been changed to "Type Objects Structures", thereby slightly improving Sphinx
search.
(cherry picked from commit 6b932ed)

Co-authored-by: sharktide <meherrihaan@gmail.com>
@bedevere-app
Copy link

bedevere-app bot commented Mar 14, 2025

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

@bedevere-app bedevere-app bot removed the needs backport to 3.12 bug and security fixes label Mar 14, 2025
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 14, 2025
…ythonGH-130817)

The "Type Objects" title in `c-api/typeobj.rst`, duplicating the title of `c-api/type.rst`,
has been changed to "Type Objects Structures", thereby slightly improving Sphinx
search.
(cherry picked from commit 6b932ed)

Co-authored-by: sharktide <meherrihaan@gmail.com>
@bedevere-app
Copy link

bedevere-app bot commented Mar 14, 2025

GH-131225 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Mar 14, 2025
picnixz pushed a commit that referenced this pull request Mar 14, 2025
…GH-130817) (#131225)

gh-130814: Enhance documentation for Python C API type objects (GH-130817)

The "Type Objects" title in `c-api/typeobj.rst`, duplicating the title of `c-api/type.rst`,
has been changed to "Type Objects Structures", thereby slightly improving Sphinx
search.
(cherry picked from commit 6b932ed)

Co-authored-by: sharktide <meherrihaan@gmail.com>
picnixz pushed a commit that referenced this pull request Mar 14, 2025
…GH-130817) (#131224)

gh-130814: Enhance documentation for Python C API type objects (GH-130817)

The "Type Objects" title in `c-api/typeobj.rst`, duplicating the title of `c-api/type.rst`,
has been changed to "Type Objects Structures", thereby slightly improving Sphinx
search.
(cherry picked from commit 6b932ed)

Co-authored-by: sharktide <meherrihaan@gmail.com>
mikec9 pushed a commit to mikec9/cpython that referenced this pull request Mar 14, 2025
…bjects (pythonGH-130817) (python#131224)

pythongh-130814: Enhance documentation for Python C API type objects (pythonGH-130817)

The "Type Objects" title in `c-api/typeobj.rst`, duplicating the title of `c-api/type.rst`,
has been changed to "Type Objects Structures", thereby slightly improving Sphinx
search.
(cherry picked from commit 6b932ed)

Co-authored-by: sharktide <meherrihaan@gmail.com>
plashchynski pushed a commit to plashchynski/cpython that referenced this pull request Mar 17, 2025
…ython#130817)

The "Type Objects" title in `c-api/typeobj.rst`, duplicating the title of `c-api/type.rst`,
has been changed to "Type Objects Structures", thereby slightly improving Sphinx
search.
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 topic-C-API
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants