This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Add mode to TextIOWrapper repr
Type: behavior Stage: resolved
Components: IO Versions: Python 3.1, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: amaury.forgeotdarc, benjamin.peterson, ezio.melotti, georg.brandl, pitrou, vstinner
Priority: normal Keywords: easy, patch

Created on 2011-01-09 09:22 by georg.brandl, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
textiorepr.patch pitrou, 2011-01-09 19:44 review
Messages (5)
msg125836 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2011-01-09 09:22
The old file type had its mode in the repr(), which I think was useful; TextIOWrapper doesn't.  Can we add it back?
msg125853 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011-01-09 19:44
Here is a patch.
msg125856 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2011-01-09 20:31
LGTM.
msg125857 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011-01-09 20:42
Committed in r87897. Left open for backport.
msg184145 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2013-03-14 08:12
Should this still be backported on 2.7?
History
Date User Action Args
2022-04-11 14:57:11adminsetgithub: 55081
2014-04-29 00:08:08pitrousetstatus: open -> closed
resolution: accepted -> fixed
2013-03-14 08:12:33ezio.melottisetkeywords: + easy
nosy: + ezio.melotti
messages: + msg184145

2011-07-07 11:00:56vstinnersetnosy: + vstinner
2011-01-09 20:42:12pitrousetassignee: pitrou ->
type: enhancement -> behavior
versions: + Python 3.1, Python 2.7, - Python 3.2
nosy: georg.brandl, amaury.forgeotdarc, pitrou, benjamin.peterson
messages: + msg125857
resolution: accepted
stage: resolved
2011-01-09 20:31:31georg.brandlsetnosy: georg.brandl, amaury.forgeotdarc, pitrou, benjamin.peterson
messages: + msg125856
2011-01-09 19:44:28pitrousetfiles: + textiorepr.patch

messages: + msg125853
keywords: + patch
nosy: georg.brandl, amaury.forgeotdarc, pitrou, benjamin.peterson
2011-01-09 15:11:28pitrousetnosy: + amaury.forgeotdarc, benjamin.peterson
type: enhancement
components: + IO
2011-01-09 09:22:24georg.brandlcreate