@@ -220,7 +220,7 @@ PyTypeObject _PyManagedBuffer_Type = {
220220
221221
222222PyDoc_STRVAR (memory_doc ,
223- "memoryview(object)\n\
223+ "memoryview($module, object)\n-- \n\
224224\n\
225225Create a new memoryview object which references the given object." );
226226
@@ -2897,6 +2897,7 @@ PyDoc_STRVAR(memory_f_contiguous_doc,
28972897PyDoc_STRVAR (memory_contiguous_doc ,
28982898 "A bool indicating whether the memory is contiguous." );
28992899
2900+
29002901static PyGetSetDef memory_getsetlist [] = {
29012902 {"obj" , (getter )memory_obj_get , NULL , memory_obj_doc },
29022903 {"nbytes" , (getter )memory_nbytes_get , NULL , memory_nbytes_doc },
@@ -2914,19 +2915,19 @@ static PyGetSetDef memory_getsetlist[] = {
29142915};
29152916
29162917PyDoc_STRVAR (memory_release_doc ,
2917- "M. release() -> None \n\
2918+ "release($self, /)\n-- \n\
29182919\n\
29192920Release the underlying buffer exposed by the memoryview object." );
29202921PyDoc_STRVAR (memory_tobytes_doc ,
2921- "M. tobytes() -> bytes \n\
2922+ "tobytes($self, /)\n-- \n\
29222923\n\
29232924Return the data in the buffer as a byte string." );
29242925PyDoc_STRVAR (memory_tolist_doc ,
2925- "M. tolist() -> list \n\
2926+ "tolist($self, /)\n-- \n\
29262927\n\
29272928Return the data in the buffer as a list of elements." );
29282929PyDoc_STRVAR (memory_cast_doc ,
2929- "M. cast(format[, shape]) -> memoryview \n\
2930+ "cast($self, /, format, *, shape)\n-- \n\
29302931\n\
29312932Cast a memoryview to a new format or shape." );
29322933
0 commit comments