Skip to content

Commit 97fb248

Browse files
authored
gh-101100: Fix sphinx warnings in Doc/c-api/memoryview.rst (GH-114669)
1 parent 3b86891 commit 97fb248

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

Doc/c-api/memoryview.rst

+13
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

-1
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/sys.rst

0 commit comments

Comments
 (0)