Skip to content

Commit 9b5f30e

Browse files
Doc: Fix the array.fromfile method doc (GH-22037) (GH-25631)
The check about the f argument type was removed in this commit: 2c94aa5 Thanks for Pedro Arthur Duarte (pedroarthur.jedi at gmail.com) by the help with this bug. (cherry picked from commit bd25bcd) Co-authored-by: Adorilson Bezerra <adorilson@gmail.com> Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
1 parent 10ee266 commit 9b5f30e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Doc/library/array.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,7 @@ The following data items and methods are also supported:
159159
Read *n* items (as machine values) from the :term:`file object` *f* and append
160160
them to the end of the array. If less than *n* items are available,
161161
:exc:`EOFError` is raised, but the items that were available are still
162-
inserted into the array. *f* must be a real built-in file object; something
163-
else with a :meth:`read` method won't do.
162+
inserted into the array.
164163

165164

166165
.. method:: array.fromlist(list)

0 commit comments

Comments
 (0)