]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Doc: Fix the array.fromfile method doc (GH-22037)
authorAdorilson Bezerra <adorilson@gmail.com>
Mon, 26 Apr 2021 14:19:21 +0000 (11:19 -0300)
committerGitHub <noreply@github.com>
Mon, 26 Apr 2021 14:19:21 +0000 (07:19 -0700)
The check about the f argument type was removed in this commit:
https://github.com/python/cpython/commit/2c94aa567e525c82041ad68a3174d8c3acbf37e2

Thanks for Pedro Arthur Duarte (pedroarthur.jedi at gmail.com) by the help with
this bug.

Doc/library/array.rst

index 18a768d7de26c224e25fd482c3221f0fcbecb487..c7f137d15b4b8608681ff1e54619da832e934766 100644 (file)
@@ -160,8 +160,7 @@ The following data items and methods are also supported:
    Read *n* items (as machine values) from the :term:`file object` *f* and append
    them to the end of the array.  If less than *n* items are available,
    :exc:`EOFError` is raised, but the items that were available are still
-   inserted into the array. *f* must be a real built-in file object; something
-   else with a :meth:`read` method won't do.
+   inserted into the array.
 
 
 .. method:: array.fromlist(list)