diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2008-10-07 07:03:04 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2008-10-07 07:03:04 (GMT) |
commit | 651423c1eb91a7e5a0ff346d2f52a654b765344a (patch) | |
tree | c075a3106993dbd399e009c179fdc0885328b49c /Doc/library/functions.rst | |
parent | a731b9929f6aeb55d484cf7b655e9c108e16f222 (diff) | |
download | cpython-651423c1eb91a7e5a0ff346d2f52a654b765344a.zip cpython-651423c1eb91a7e5a0ff346d2f52a654b765344a.tar.gz cpython-651423c1eb91a7e5a0ff346d2f52a654b765344a.tar.bz2 |
More bytes vs. strings documentation.
Diffstat (limited to 'Doc/library/functions.rst')
-rw-r--r-- | Doc/library/functions.rst | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 1fdbeec..7fe9258 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -710,10 +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 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 + *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 |