]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-66060: Use actual class name in _io type's __repr__ (#30824)
authorAN Long <aisk@users.noreply.github.com>
Tue, 9 Jan 2024 20:39:36 +0000 (04:39 +0800)
committerGitHub <noreply@github.com>
Tue, 9 Jan 2024 20:39:36 +0000 (21:39 +0100)
commit623b338adf2645b09c546e7a17f2648d3a900620
tree2c449075d2ce13ac8d6affe944632d1ac94f2339
parent1092cfb20179ac7dd6a2c3c6f8a57ecc1732c777
gh-66060: Use actual class name in _io type's __repr__ (#30824)

Use the object's actual class name in the following _io type's __repr__:
- FileIO
- TextIOWrapper
- _WindowsConsoleIO
Lib/test/test_fileio.py
Lib/test/test_io.py
Lib/test/test_winconsoleio.py
Misc/NEWS.d/next/Core and Builtins/2022-01-23-18-00-10.bpo-21861.N8E1zw.rst [new file with mode: 0644]
Modules/_io/fileio.c
Modules/_io/textio.c
Modules/_io/winconsoleio.c