diff options
author | Antonio Cuni <anto.cuni@gmail.com> | 2021-01-06 11:38:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-06 11:38:26 (GMT) |
commit | 315fc52db17b19fe30aa9193f26adf69e18d8844 (patch) | |
tree | 90a8795e94974c667c306f8e508c4df674bfc7b8 /Doc/c-api/memoryview.rst | |
parent | 1a9f51ed12feb4d95ad6d0faf610a030c05b9f5e (diff) | |
download | cpython-315fc52db17b19fe30aa9193f26adf69e18d8844.zip cpython-315fc52db17b19fe30aa9193f26adf69e18d8844.tar.gz cpython-315fc52db17b19fe30aa9193f26adf69e18d8844.tar.bz2 |
bpo-42528: Improve the docs of most Py*_Check{,Exact} API calls (GH-23602)
I think that none of these API calls can fail, but only few of them are
documented as such. Add the sentence "This function always succeeds" (which is
the same already used e.g. by PyNumber_Check) to all of them.
Diffstat (limited to 'Doc/c-api/memoryview.rst')
-rw-r--r-- | Doc/c-api/memoryview.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/c-api/memoryview.rst b/Doc/c-api/memoryview.rst index de429e5..24f8c93 100644 --- a/Doc/c-api/memoryview.rst +++ b/Doc/c-api/memoryview.rst @@ -45,7 +45,8 @@ any other object. .. c:function:: int PyMemoryView_Check(PyObject *obj) Return true if the object *obj* is a memoryview object. It is not - currently allowed to create subclasses of :class:`memoryview`. + currently allowed to create subclasses of :class:`memoryview`. This + function always succeeds. .. c:function:: Py_buffer *PyMemoryView_GET_BUFFER(PyObject *mview) |