8000 [3.11] gh-101100: Fix sphinx warnings in `Doc/c-api/memory.rst` (GH-114373) by miss-islington · Pull Request #114378 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.11] gh-101100: Fix sphinx warnings in Doc/c-api/memory.rst (GH-114373) #114378

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

Merged
merged 1 commit into from
Jan 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-101100: Fix sphinx warnings in Doc/c-api/memory.rst (GH-114373)
(cherry picked from commit 47133d8)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
  • Loading branch information
sobolevn authored and miss-islington committed Jan 21, 2024
commit 860fcde5d425e97f0e13b53355f27e605f284ad9
4 changes: 2 additions & 2 deletions Doc/c-api/memory.rst
9AE9
Original file line number Diff line number Diff line change
Expand Up @@ -267,14 +267,14 @@ The following type-oriented macros are provided for convenience. Note that
.. c:macro:: PyMem_New(TYPE, n)

Same as :c:func:`PyMem_Malloc`, but allocates ``(n * sizeof(TYPE))`` bytes of
memory. Returns a pointer cast to :c:expr:`TYPE*`. The memory will not have
memory. Returns a pointer cast to ``TYPE*``. The memory will not have
been initialized in any way.


.. c:macro:: PyMem_Resize(p, TYPE, n)

Same as :c:func:`PyMem_Realloc`, but the memory block is resized to ``(n *
sizeof(TYPE))`` bytes. Returns a pointer cast to :c:expr:`TYPE*`. On return,
sizeof(TYPE))`` bytes. Returns a pointer cast to ``TYPE*``. On return,
*p* will be a pointer to the new memory area, or ``NULL`` in the event of
failure.

Expand Down
1 change: 0 additions & 1 deletion Doc/tools/.nitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Doc/c-api/gcsupport.rst
Doc/c-api/init.rst
Doc/c-api/init_config.rst
Doc/c-api/intro.rst
Doc/c-api/memory.rst
Doc/c-api/memoryview.rst
Doc/c-api/module.rst
Doc/c-api/object.rst
Expand Down
0