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-101100: Fix sphinx warnings in c-api/file.rst #114546

Merged
merged 3 commits into from
Jan 26, 2024

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Jan 25, 2024

It used to be:

/Users/sobolev/Desktop/cpython2/Doc/c-api/file.rst:63: WARNING: c:identifier reference target not found: Py_OpenCodeHookFunction
/Users/sobolev/Desktop/cpython2/Doc/c-api/file.rst:95: WARNING: c:macro reference target not found: Py_PRINT_RAW

I've added docs about two public things:

  • Py_PRINT_RAW macro
  • Py_OpenCodeHookFunction typedef

📚 Documentation preview 📚: https://cpython-previews--114546.org.readthedocs.build/

@sobolevn sobolevn force-pushed the issue-101100-capi-file branch from af83cde to 46e1fa6 Compare January 25, 2024 07:30
@sobolevn sobolevn added needs backport to 3.11 only security fixes needs backport to 3.12 bug and security fixes labels Jan 25, 2024
@sobolevn
Copy link
Member Author

Turns out I've also fixed object.rst 🎉

Doc/c-api/object.rst Outdated Show resolved Hide resolved
Doc/c-api/file.rst Outdated Show resolved Hide resolved
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Copy link
Member

@hugovk hugovk 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!

@hugovk hugovk merged commit 01d970c into python:main Jan 26, 2024
25 checks passed
@miss-islington-app
Copy link

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 26, 2024
…4546)

(cherry picked from commit 01d970c)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 26, 2024
…4546)

(cherry picked from commit 01d970c)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
@bedevere-app
Copy link

bedevere-app bot commented Jan 26, 2024

GH-114584 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 Jan 26, 2024
@bedevere-app
Copy link

bedevere-app bot commented Jan 26, 2024

GH-114585 is a backport of this pull request to the 3.11 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.11 only security fixes label Jan 26, 2024
hugovk added a commit that referenced this pull request Jan 26, 2024
…#114585)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
@serhiy-storchaka
Copy link
Member

It creates incorrect references and index entries.

@hugovk
Copy link
Member

hugovk commented Jan 26, 2024

Which ones are wrong?

@serhiy-storchaka
Copy link
Member

The newly documented names. They are added in wrong namespaces.

hugovk added a commit that referenced this pull request Feb 4, 2024
…#114584)

* gh-101100: Fix sphinx warnings in `c-api/file.rst` (GH-114546)
(cherry picked from commit 01d970c)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
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