[Python-checkins] Doc: Fix the array.fromfile method doc (GH-22037) (GH-25630)
orsenthil
webhook-mailer at python.org
Mon Apr 26 10:24:21 EDT 2021
https://github.com/python/cpython/commit/b348580da60cad723d34524e61b43703f0b2f0a8
commit: b348580da60cad723d34524e61b43703f0b2f0a8
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: orsenthil <skumaran at gatech.edu>
date: 2021-04-26T07:24:17-07:00
summary:
Doc: Fix the array.fromfile method doc (GH-22037) (GH-25630)
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 at gmail.com>
Co-authored-by: Adorilson Bezerra <adorilson at gmail.com>
files:
M Doc/library/array.rst
diff --git a/Doc/library/array.rst b/Doc/library/array.rst
index 78020738bf4f7..f2f7894e1bf0f 100644
--- a/Doc/library/array.rst
+++ b/Doc/library/array.rst
@@ -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)
More information about the Python-checkins
mailing list