mirror of
https://github.com/python/cpython.git
synced 2025-09-19 15:10:58 +00:00
Remove the deprecated array.read/write methods.
This commit is contained in:
parent
400adb030a
commit
f25ef50549
1 changed files with 2 additions and 9 deletions
|
@ -1241,7 +1241,7 @@ PyDoc_STRVAR(fromfile_doc,
|
||||||
"fromfile(f, n)\n\
|
"fromfile(f, n)\n\
|
||||||
\n\
|
\n\
|
||||||
Read n objects from the file object f and append them to the end of the\n\
|
Read n objects from the file object f and append them to the end of the\n\
|
||||||
array. Also called as read.");
|
array.");
|
||||||
|
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
|
@ -1281,8 +1281,7 @@ array_tofile(arrayobject *self, PyObject *f)
|
||||||
PyDoc_STRVAR(tofile_doc,
|
PyDoc_STRVAR(tofile_doc,
|
||||||
"tofile(f)\n\
|
"tofile(f)\n\
|
||||||
\n\
|
\n\
|
||||||
Write all items (as machine values) to the file object f. Also called as\n\
|
Write all items (as machine values) to the file object f.");
|
||||||
write.");
|
|
||||||
|
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
|
@ -1523,8 +1522,6 @@ PyMethodDef array_methods[] = {
|
||||||
insert_doc},
|
insert_doc},
|
||||||
{"pop", (PyCFunction)array_pop, METH_VARARGS,
|
{"pop", (PyCFunction)array_pop, METH_VARARGS,
|
||||||
pop_doc},
|
pop_doc},
|
||||||
{"read", (PyCFunction)array_fromfile, METH_VARARGS,
|
|
||||||
fromfile_doc},
|
|
||||||
{"__reduce__", (PyCFunction)array_reduce, METH_NOARGS,
|
{"__reduce__", (PyCFunction)array_reduce, METH_NOARGS,
|
||||||
array_doc},
|
array_doc},
|
||||||
{"remove", (PyCFunction)array_remove, METH_O,
|
{"remove", (PyCFunction)array_remove, METH_O,
|
||||||
|
@ -1541,8 +1538,6 @@ PyMethodDef array_methods[] = {
|
||||||
tostring_doc},
|
tostring_doc},
|
||||||
{"tounicode", (PyCFunction)array_tounicode, METH_NOARGS,
|
{"tounicode", (PyCFunction)array_tounicode, METH_NOARGS,
|
||||||
tounicode_doc},
|
tounicode_doc},
|
||||||
{"write", (PyCFunction)array_tofile, METH_O,
|
|
||||||
tofile_doc},
|
|
||||||
{NULL, NULL} /* sentinel */
|
{NULL, NULL} /* sentinel */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -2010,13 +2005,11 @@ fromstring() -- append items from the string\n\
|
||||||
index() -- return index of first occurence of an object\n\
|
index() -- return index of first occurence of an object\n\
|
||||||
insert() -- insert a new item into the array at a provided position\n\
|
insert() -- insert a new item into the array at a provided position\n\
|
||||||
pop() -- remove and return item (default last)\n\
|
pop() -- remove and return item (default last)\n\
|
||||||
read() -- DEPRECATED, use fromfile()\n\
|
|
||||||
remove() -- remove first occurence of an object\n\
|
remove() -- remove first occurence of an object\n\
|
||||||
reverse() -- reverse the order of the items in the array\n\
|
reverse() -- reverse the order of the items in the array\n\
|
||||||
tofile() -- write all items to a file object\n\
|
tofile() -- write all items to a file object\n\
|
||||||
tolist() -- return the array converted to an ordinary list\n\
|
tolist() -- return the array converted to an ordinary list\n\
|
||||||
tostring() -- return the array converted to a string\n\
|
tostring() -- return the array converted to a string\n\
|
||||||
write() -- DEPRECATED, use tofile()\n\
|
|
||||||
\n\
|
\n\
|
||||||
Attributes:\n\
|
Attributes:\n\
|
||||||
\n\
|
\n\
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue