@@ -1623,27 +1623,6 @@ frombytes(arrayobject *self, Py_buffer *buffer)
16231623 Py_RETURN_NONE ;
16241624}
16251625
1626- /*[clinic input]
1627- array.array.fromstring
1628-
1629- buffer: Py_buffer(accept={str, buffer})
1630- /
1631-
1632- Appends items from the string, interpreting it as an array of machine values, as if it had been read from a file using the fromfile() method).
1633-
1634- This method is deprecated. Use frombytes instead.
1635- [clinic start generated code]*/
1636-
1637- static PyObject *
1638- array_array_fromstring_impl (arrayobject * self , Py_buffer * buffer )
1639- /*[clinic end generated code: output=31c4baa779df84ce input=a3341a512e11d773]*/
1640- {
1641- if (PyErr_WarnEx (PyExc_DeprecationWarning ,
1642- "fromstring() is deprecated. Use frombytes() instead." , 2 ) != 0 )
1643- return NULL ;
1644- return frombytes (self , buffer );
1645- }
1646-
16471626/*[clinic input]
16481627array.array.frombytes
16491628
@@ -1678,24 +1657,6 @@ array_array_tobytes_impl(arrayobject *self)
16781657 }
16791658}
16801659
1681- /*[clinic input]
1682- array.array.tostring
1683-
1684- Convert the array to an array of machine values and return the bytes representation.
1685-
1686- This method is deprecated. Use tobytes instead.
1687- [clinic start generated code]*/
1688-
1689- static PyObject *
1690- array_array_tostring_impl (arrayobject * self )
1691- /*[clinic end generated code: output=7d6bd92745a2c8f3 input=b6c0ddee7b30457e]*/
1692- {
1693- if (PyErr_WarnEx (PyExc_DeprecationWarning ,
1694- "tostring() is deprecated. Use tobytes() instead." , 2 ) != 0 )
1695- return NULL ;
1696- return array_array_tobytes_impl (self );
1697- }
1698-
16991660/*[clinic input]
17001661array.array.fromunicode
17011662
@@ -2283,7 +2244,6 @@ static PyMethodDef array_methods[] = {
22832244 ARRAY_ARRAY_EXTEND_METHODDEF
22842245 ARRAY_ARRAY_FROMFILE_METHODDEF
22852246 ARRAY_ARRAY_FROMLIST_METHODDEF
2286- ARRAY_ARRAY_FROMSTRING_METHODDEF
22872247 ARRAY_ARRAY_FROMBYTES_METHODDEF
22882248 ARRAY_ARRAY_FROMUNICODE_METHODDEF
22892249 ARRAY_ARRAY_INDEX_METHODDEF
@@ -2294,7 +2254,6 @@ static PyMethodDef array_methods[] = {
22942254 ARRAY_ARRAY_REVERSE_METHODDEF
22952255 ARRAY_ARRAY_TOFILE_METHODDEF
22962256 ARRAY_ARRAY_TOLIST_METHODDEF
2297- ARRAY_ARRAY_TOSTRING_METHODDEF
22982257 ARRAY_ARRAY_TOBYTES_METHODDEF
22992258 ARRAY_ARRAY_TOUNICODE_METHODDEF
23002259 ARRAY_ARRAY___SIZEOF___METHODDEF
0 commit comments