mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
gh-117764: Fix and add signatures for many builtins (GH-117769)
This commit is contained in:
parent
94e9c35cd0
commit
3a8c1ca7e7
11 changed files with 45 additions and 30 deletions
|
|
@ -3255,6 +3255,9 @@ PyDoc_STRVAR(memory_f_contiguous_doc,
|
|||
"A bool indicating whether the memory is Fortran contiguous.");
|
||||
PyDoc_STRVAR(memory_contiguous_doc,
|
||||
"A bool indicating whether the memory is contiguous.");
|
||||
PyDoc_STRVAR(memory_exit_doc,
|
||||
"__exit__($self, /, *exc_info)\n--\n\n"
|
||||
"Release the underlying buffer exposed by the memoryview object.");
|
||||
|
||||
|
||||
static PyGetSetDef memory_getsetlist[] = {
|
||||
|
|
@ -3283,7 +3286,7 @@ static PyMethodDef memory_methods[] = {
|
|||
MEMORYVIEW_TOREADONLY_METHODDEF
|
||||
MEMORYVIEW__FROM_FLAGS_METHODDEF
|
||||
{"__enter__", memory_enter, METH_NOARGS, NULL},
|
||||
{"__exit__", memory_exit, METH_VARARGS, NULL},
|
||||
{"__exit__", memory_exit, METH_VARARGS, memory_exit_doc},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue