summaryrefslogtreecommitdiffstats
path: root/Doc/library/functions.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-10-08 16:34:57 (GMT)
committerGeorg Brandl <georg@python.org>2008-10-08 16:34:57 (GMT)
commit76e5538749947eaf5fbf6487805d004ea244b941 (patch)
tree23199c49714ab96b7ef12e4825b9cd55bf7cf73c /Doc/library/functions.rst
parentbcbfa645392fcbaf67a435577debfb7c2699aed0 (diff)
downloadcpython-76e5538749947eaf5fbf6487805d004ea244b941.zip
cpython-76e5538749947eaf5fbf6487805d004ea244b941.tar.gz
cpython-76e5538749947eaf5fbf6487805d004ea244b941.tar.bz2
Some more notes about bytes/string filename APIs.
Diffstat (limited to 'Doc/library/functions.rst')
-rw-r--r--Doc/library/functions.rst11
1 files changed, 5 insertions, 6 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 7fe9258..ac25510 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -710,12 +710,11 @@ are always available. They are listed here in alphabetical order.
Open a file. If the file cannot be opened, :exc:`IOError` is raised.
- *file* is either a string or bytes object giving the name (and the
- path if the file isn't in the current working directory) of the
- file to be opened or an integer file descriptor of the file to be
- wrapped. (If a file descriptor is given, it is closed when the
- returned I/O object is closed, unless *closefd* is set to
- ``False``.)
+ *file* is either a string or bytes object giving the name (and the path if
+ the file isn't in the current working directory) of the file to be opened or
+ an integer file descriptor of the file to be wrapped. (If a file descriptor
+ is given, it is closed when the returned I/O object is closed, unless
+ *closefd* is set to ``False``.)
*mode* is an optional string that specifies the mode in which the file is
opened. It defaults to ``'r'`` which means open for reading in text mode.