Skip to content

gh-162055: Remove duplicated note in Doc/c-api/intro.rst - #162075

Closed
themythofsisyphusjayant wants to merge 1 commit into
python:mainfrom
themythofsisyphusjayant:fix-gh-162055-duplicate-note
Closed

themythofsisyphusjayant wants to merge 1 commit into
python:mainfrom
themythofsisyphusjayant:fix-gh-162055-duplicate-note

Conversation

@themythofsisyphusjayant

@themythofsisyphusjayant themythofsisyphusjayant commented Nov 16, 2026 •

Copy link
Copy Markdown

The note "Since Python may define some pre-processor definitions which affect the standard headers..." appeared twice in Doc/c-api/intro.rst: once in the "Include Files" section and again after the backwards-compatibility header lists in "System includes". This removes the second copy; the note in "Include Files" is kept, where it also carries the PY_SSIZE_T_CLEAN recommendation.

Checked by building the page with Sphinx (9.1.1, from Doc/requirements.txt): the page renders with the note appearing once. The only build warnings are pre-existing single-file-build artifacts, identical before and after the change.

Disclosure: I used an AI coding assistant to help prepare this change, and reviewed the diff myself before submitting.

@python-cla-bot

python-cla-bot Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #35915717 | 📁 Comparing bfab3be against main (7c59816)

  🔍 Preview build  

1 file changed
± c-api/intro.html

@aisk

aisk commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Hi, thank you for your contribution, but there is already an active PR for this from the original reporter: #162072, so I’ll have to close this one.

@aisk aisk closed this Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants