diff Doc/library/array.rst @ 64763:bed950cbd0c0

Add cross-references to the glossary entry for file objects.
author Antoine Pitrou <solipsis@pitrou.net>
date Wed, 15 Sep 2010 11:11:28 +0000
parents fa8b57f987c5
children 521eac31a893
line wrap: on
line diff
--- a/Doc/library/array.rst	Wed Sep 15 10:08:31 2010 +0000
+++ b/Doc/library/array.rst	Wed Sep 15 11:11:28 2010 +0000
@@ -147,11 +147,11 @@
 
 .. method:: array.fromfile(f, n)
 
-   Read *n* items (as machine values) from the 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.
+   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.
 
 
 .. method:: array.fromlist(list)
@@ -214,7 +214,7 @@
 
 .. method:: array.tofile(f)
 
-   Write all items (as machine values) to the file object *f*.
+   Write all items (as machine values) to the :term:`file object` *f*.
 
 
 .. method:: array.tolist()