GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||
GeezerVison is showing github.com — gh-66060: Use actual class name in some `_io` type's `__repr__` by aisk · Pull Request #30824 · python/cpython Conversation
|
|
Hi @taleinat can you take a look at this please? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@serhiy-storchaka, @rhettinger as participants of the parent issue. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
_io type's __repr__
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks! We normally truncate the class names with the %.100s or %.200s format specifiers. I think it would be nice to follow that practice. Can you update the format strings?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thank you for your review. I have implemented the changes you recommended as described above. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Thanks, @aisk! I'll land this later tonight (CET). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…30824) Use the object's actual class name in the following _io type's __repr__: - FileIO - TextIOWrapper - _WindowsConsoleIO
…30824) Use the object's actual class name in the following _io type's __repr__: - FileIO - TextIOWrapper - _WindowsConsoleIO
…30824) Use the object's actual class name in the following _io type's __repr__: - FileIO - TextIOWrapper - _WindowsConsoleIO
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
io class name are hardcoded in reprs
There was an error while loading. Please reload this page.