Skip to content

gh-107298: Add standard exceptions and warnings in the nitpick_ignore list - #108029

Merged
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:docs-capi-ignore-exc-refs
Aug 17, 2023
Merged

serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:docs-capi-ignore-exc-refs

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Aug 16, 2023 •

Copy link
Copy Markdown
Member
Comment thread Doc/conf.py Resolved
Comment thread Doc/conf.py
]

# Temporary undocumented names.
# In future this list must be empty.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

A fix would be to replace :c:data:`Exception` with .. c:data:`Exception` in Doc/c-api/exceptions.rst, right?

@serhiy-storchaka serhiy-storchaka Aug 16, 2023 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I tried this, and it turned out not so simple. You need to specify the type:

.. c:var:: PyObject *PyExc_SomeError

and the result does not look good.

@serhiy-storchaka
serhiy-storchaka merged commit c9d83f9 into python:main Aug 17, 2023
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12.
🐍🍒⛏🤖

@bedevere-bot

Copy link
Copy Markdown

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 17, 2023
…ignore list (pythonGH-108029)

(cherry picked from commit c9d83f9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@bedevere-bot bedevere-bot removed the needs backport to 3.12 only security fixes label Aug 17, 2023
@bedevere-bot

Copy link
Copy Markdown

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

@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label Aug 17, 2023
@serhiy-storchaka
serhiy-storchaka deleted the docs-capi-ignore-exc-refs branch August 17, 2023 06:44
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 17, 2023
…ignore list (pythonGH-108029)

(cherry picked from commit c9d83f9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
serhiy-storchaka added a commit that referenced this pull request Aug 17, 2023
…_ignore list (GH-108029) (GH-108071)

(cherry picked from commit c9d83f9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Yhg1s pushed a commit that referenced this pull request Aug 17, 2023
…_ignore list (GH-108029) (#108070)

gh-107298: Add standard exceptions and warnings in the nitpick_ignore list (GH-108029)
(cherry picked from commit c9d83f9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

5 participants