Skip to content

Commit d2f7aea

Browse files
kovanclaude
andcommitted
Fix cross-reference to io.FileIO.name
The name attribute is documented under io.FileIO, not io.IOBase. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 0681b6d commit d2f7aea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/functions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1356,7 +1356,7 @@ are always available. They are listed here in alphabetical order.
13561356
integer file descriptor of the file to be wrapped. (If a file descriptor is
13571357
given, it is closed when the returned I/O object is closed unless *closefd*
13581358
is set to ``False``.) The value passed as *file* is stored in the
1359-
:attr:`~io.IOBase.name` attribute of the returned file object.
1359+
:attr:`~io.FileIO.name` attribute of the returned file object.
13601360

13611361
*mode* is an optional string that specifies the mode in which the file is
13621362
opened. It defaults to ``'r'`` which means open for reading in text mode.

0 commit comments

Comments
 (0)