summaryrefslogtreecommitdiff
path: root/Doc/library/aifc.rst
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-09-15 11:11:28 +0000
committerAntoine Pitrou <solipsis@pitrou.net>2010-09-15 11:11:28 +0000
commit11cb961b38550443d287b2b55174e504c2309af2 (patch)
tree51b2972800e593dde1b5f5154b9b044058a350d7 /Doc/library/aifc.rst
parent6a11a98b7c8f576d7663182cbd09123eb108a928 (diff)
downloadcpython-git-11cb961b38550443d287b2b55174e504c2309af2.tar.gz
Add cross-references to the glossary entry for file objects.
Diffstat (limited to 'Doc/library/aifc.rst')
-rw-r--r--Doc/library/aifc.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/aifc.rst b/Doc/library/aifc.rst
index bdd3517bed..304437d9a2 100644
--- a/Doc/library/aifc.rst
+++ b/Doc/library/aifc.rst
@@ -40,10 +40,10 @@ Module :mod:`aifc` defines the following function:
.. function:: open(file, mode=None)
Open an AIFF or AIFF-C file and return an object instance with methods that are
- described below. The argument *file* is either a string naming a file or a file
- object. *mode* must be ``'r'`` or ``'rb'`` when the file must be opened for
- reading, or ``'w'`` or ``'wb'`` when the file must be opened for writing. If
- omitted, ``file.mode`` is used if it exists, otherwise ``'rb'`` is used. When
+ described below. The argument *file* is either a string naming a file or a
+ :term:`file object`. *mode* must be ``'r'`` or ``'rb'`` when the file must be
+ opened for reading, or ``'w'`` or ``'wb'`` when the file must be opened for writing.
+ If omitted, ``file.mode`` is used if it exists, otherwise ``'rb'`` is used. When
used for writing, the file object should be seekable, unless you know ahead of
time how many samples you are going to write in total and use
:meth:`writeframesraw` and :meth:`setnframes`.