summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-04-26 14:24:07 (GMT)
committerGitHub <noreply@github.com>2021-04-26 14:24:07 (GMT)
commit9b5f30efe40e8da4348cd24c0e1147fd79f0ff8a (patch)
tree58fab308b09e9ded456cd87a4cdf1a0666ca16dd
parent10ee2662dfeeb3b00d232f8f1c2eecc4d7e65244 (diff)
downloadcpython-9b5f30efe40e8da4348cd24c0e1147fd79f0ff8a.zip
cpython-9b5f30efe40e8da4348cd24c0e1147fd79f0ff8a.tar.gz
cpython-9b5f30efe40e8da4348cd24c0e1147fd79f0ff8a.tar.bz2
Doc: Fix the array.fromfile method doc (GH-22037) (GH-25631)
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. (cherry picked from commit bd25bcd37a3a41a0e08208e969f0c02287850c61) Co-authored-by: Adorilson Bezerra <adorilson@gmail.com> Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
-rw-r--r--Doc/library/array.rst3
1 files changed, 1 insertions, 2 deletions
diff --git a/Doc/library/array.rst b/Doc/library/array.rst
index 6809c51..6658cca 100644
--- a/Doc/library/array.rst
+++ b/Doc/library/array.rst
@@ -159,8 +159,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)