Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9fd8aaa

Browse files
[3.11]gh-101100: Fix sphinx warnings inDoc/c-api/memoryview.rst (GH-114669) (GH-114705)
(cherry picked from commit97fb248)Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
1 parenta2c55c5 commit9fd8aaa

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

‎Doc/c-api/memoryview.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@ any other object.
2020
read/write, otherwise it may be either read-only or read/write at the
2121
discretion of the exporter.
2222
23+
24+
..c:macro:: PyBUF_READ
25+
26+
Flag to request a readonly buffer.
27+
28+
29+
..c:macro:: PyBUF_WRITE
30+
31+
Flag to request a writable buffer.
32+
33+
2334
..c:function:: PyObject *PyMemoryView_FromMemory(char *mem, Py_ssize_t size, int flags)
2435
2536
Create a memoryview object using *mem* as the underlying buffer.
@@ -41,6 +52,8 @@ any other object.
4152
original memory. Otherwise, a copy is made and the memoryview points to a
4253
new bytes object.
4354
55+
*buffertype* can be one of :c:macro:`PyBUF_READ` or :c:macro:`PyBUF_WRITE`.
56+
4457
4558
.. c:function:: int PyMemoryView_Check(PyObject *obj)
4659

‎Doc/tools/.nitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ Doc/c-api/gcsupport.rst
99
Doc/c-api/init.rst
1010
Doc/c-api/init_config.rst
1111
Doc/c-api/intro.rst
12-
Doc/c-api/memoryview.rst
1312
Doc/c-api/module.rst
1413
Doc/c-api/stable.rst
1514
Doc/c-api/structures.rst

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp