diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index cd819b8d06480a..76ec9e7438f3f5 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -1355,7 +1355,8 @@ are always available. They are listed here in alphabetical order. 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``.) + is set to ``False``.) The value passed as *file* is stored in the + :attr:`~io.FileIO.name` attribute of the returned file object. *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.