mirror of
https://github.com/python/cpython.git
synced 2024-11-26 11:24:40 +08:00
Clarify.
This commit is contained in:
parent
7f54dce9bd
commit
70f355d13e
@ -61,8 +61,8 @@ Module Interface
|
||||
Open *file* and return a corresponding stream. If the file cannot be opened,
|
||||
an :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
|
||||
*file* is either a string or bytes object giving the pathname (absolute or
|
||||
relative to 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``.)
|
||||
|
Loading…
Reference in New Issue
Block a user