GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [3.11] gh-107298: Fix more Sphinx warnings in the C API doc (GH-107329) by serhiy-storchaka · Pull Request #107377 · python/cpython

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Jul 28, 2023 •
edited by github-actions Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Declare the following functions as macros, since they are actually macros. It avoids a warning on "TYPE" or "macro" argument.

  • PyMem_New()
  • PyMem_Resize()
  • PyModule_AddIntMacro()
  • PyModule_AddStringMacro()
  • PyObject_GC_New()
  • PyObject_GC_NewVar()
  • PyObject_New()
  • PyObject_NewVar()

(cherry picked from commit 8d61a71)

  • Issue: Fix Sphinx warnings in the C API documentation #107298

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@vstinner @serhiy-storchaka
[3.11] pythongh-107298: Fix more Sphinx warnings in the C API doc (py…
432d1c7
…thonGH-107329)

Declare the following functions as macros, since they are actually
macros. It avoids a warning on "TYPE" or "macro" argument.

* PyMem_New()
* PyMem_Resize()
* PyModule_AddIntMacro()
* PyModule_AddStringMacro()
* PyObject_GC_New()
* PyObject_GC_NewVar()
* PyObject_New()
* PyObject_NewVar()

Add C standard C types to nitpick_ignore in Doc/conf.py:

* int64_t
* uint64_t
* uintptr_t

No longer ignore non existing "__int" type in nitpick_ignore.

Update Doc/tools/.nitignore.
(cherry picked from commit 8d61a71)

Co-authored-by: Victor Stinner <[email protected]>
This was referenced Jul 28, 2023
Fix Sphinx warnings in the C API documentation #107298
Closed
gh-107298: Fix more Sphinx warnings in the C API doc #107329
Merged
@bedevere-bot bedevere-bot added skip news awaiting core review labels Jul 28, 2023
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) July 28, 2023 06:55
@serhiy-storchaka
serhiy-storchaka merged commit 32e17d4 into python:3.11 Jul 28, 2023
@bedevere-bot bedevere-bot removed the awaiting core review label Jul 28, 2023
@serhiy-storchaka
serhiy-storchaka deleted the backport-8d61a71-3.11 branch February 19, 2024 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

skip news

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@serhiy-storchaka @bedevere-bot @vstinner
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.