From 11cb961b38550443d287b2b55174e504c2309af2 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Wed, 15 Sep 2010 11:11:28 +0000 Subject: Add cross-references to the glossary entry for file objects. --- Doc/library/aifc.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Doc/library/aifc.rst') 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`. -- cgit v1.2.1