File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1352,9 +1352,10 @@ are always available. They are listed here in alphabetical order.
13521352 :ref: `tut-files ` for more examples of how to use this function.
13531353
13541354 *file * is a :term: `path-like object ` giving the pathname (absolute or
1355- relative to the current working directory) of the file to be opened or an
1356- integer file descriptor of the file to be wrapped. (If a file descriptor is
1357- given, it is closed when the returned I/O object is closed unless *closefd *
1355+ relative to the current working directory) of the file to be opened,
1356+ or an object with a ``name `` attribute, or an integer file descriptor
1357+ of the file to be wrapped. (If a file descriptor is given,
1358+ it is closed when the returned I/O object is closed unless *closefd *
13581359 is set to ``False ``.)
13591360
13601361 *mode * is an optional string that specifies the mode in which the file is
You can’t perform that action at this time.
0 commit comments